static S beforeComma(S s) { ret substring(s, 0, smartIndexOf(s, ',')); }