static S replaceTrailer(S a, S sep, S b) { ret joinStrings(sep, dropStartingFromLast(a, sep), b); }