code: private static int skipBlanks(String s, int p) {
          while (p < s.length() && Character.isWhitespace(s.charAt(p)))
              p++;
          return p;
      }
docs: Skips blanks (white space) in string s starting at position p.