static S dropTrailingNullChars(S s) { int i = l(s); while (i > 0 && s.charAt(i-1) == '\0') --i; ret takeFirst(i, s); }