static PairS splitAtFirstSpace(S s) { int i = smartIndexOf(s, ' '); ret pair(trimSsubstring(s, 0, i), trimSubstring(s, i+1)); }