sS dropAfterSubstring(S s, S b) { ret substring(s, 0, smartIndexOf(s, b)); }