public int skipWhitespace() {
        for (int i = index; i < originalInput.length(); i++) {
            char ch = originalInput.charAt(i);
            if (Character.isSpaceChar(ch) ) {
                index++;
            } else {
                break;
            }
        }
        return index;
    }
public int skipWhitespace ( ) { for ( int i = index ; i < originalInput . length ( ) ; i ++ ) { char ch = originalInput . charAt ( i ) ; if ( Character . isSpaceChar ( ch ) ) { index ++ ; } else { break ; } } return index ; }
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)