static int indexOfFirstLetter(S s) { int n = l(s); for i to n: if (isLetter(s.charAt(i))) ret i; ret -1; }