code: private static int _indexOf(@Nonnull String s, char ch) {
          int idx = s.indexOf(ch);
          if (idx<0)  return s.length();
          return idx;
      }
docs: Works like {@link String#indexOf(int)} but 'not found' is returned as s.length(), not -1.
  This enables more straight-forward comparison.