static bool charAtIs(S s, int i, char c) { ret i >= 0 && i < l(s) && s != null && s.charAt(i) == c; }