static PairS splitAtFirst(S s, S splitter) { int i = indexOf(s, splitter); if (i < 0) null; ret pair(trimSubstring(s, 0, i), trimSubstring(s, i+l(splitter))); }