String stringTo(int end) {
            try {
                String value = s.substring(position, end);
                position = end;
                return value;
            }
            catch (IndexOutOfBoundsException e) {
                throw new IllegalArgumentException(end + " is larger than the size of the string,  " + s.length());
            }
        }
Returns the string value from the current to the given position, and moves the current
position to the next character.

@throws IllegalArgumentException if end is beyond the last position of the string
container-search/src/main/java/com/yahoo/search/yql/ParameterListParser.java