char peek() {
            int localPosition = position;
            while (localPosition < s.length()) {
                char nextChar = s.charAt(localPosition++);
                if (!Character.isSpaceChar(nextChar))
                    return nextChar;
            }
            return Character.UNASSIGNED;
        }
Returns the next non-space character or UNASSIGNED if we have reached the end of the string.
The current position is not changed.
container-search/src/main/java/com/yahoo/search/yql/ParameterListParser.java