void pass(char character) {
            while (position < s.length()) {
                char nextChar = s.charAt(position++);
                if (!Character.isSpaceChar(nextChar)) {
                    if (nextChar == character)
                        return;
                    else
                        throw new IllegalArgumentException("Expected '" + character + "' at position " + (position-1) +
                                                           " but got '" + nextChar + "'");
                }
            }
            throw new IllegalArgumentException("Expected '" + character + "' at position " + (position-1) +
                                               " but reached the end");
        }
Verifies that the next non-space character is the given and moves the position past it.

@throws IllegalArgumentException if the next non-space character is not the given character
container-search/src/main/java/com/yahoo/search/yql/ParameterListParser.java