code: public int skipWhitespace() {
          for (int i = index; i < originalInput.length(); i++) {
              if (Character.isWhitespace(originalInput.charAt(i))) {
                  index++;
              } else {
                  break;
              }
          }
          return index;
      }
docs: Skips all whitespaces until a non whitespace character is occurring. If
  the next character is not whitespace this method does nothing.
  
  @return the new parse index after skipping any whitespaces.
  @see Character#isWhitespace(char)