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