sS beforeVerticalBar(S s) { ret trimSubstring(s, 0, smartIndexOf(s, '|')); }