static char nextToLastChar(S s) { ret l(s) < 2 ? '\0' : s.charAt(l(s)-2); }