static char charAt(S s, int i) { ret s != null && i >= 0 && i < s.length() ? s.charAt(i) : '\0'; }