static S dropTrailingBackslashR(S s) { int i = l(s); while (i > 0 && s.charAt(i) == '\r') --i; ret substring(s, 0, i); }