public int findEndOfString(char[] chars, int offset) {
        for (int charNr = offset; charNr<chars.length; charNr++) {
            char theChar = chars[charNr];
            if (isEndOfStringSeparator(theChar)) {
                return charNr;
            }
        }
        return chars.length;
    }
Find the end of the string

@param chars The input in which we are seeking
@param offset The start offset from where to seek
@return The offset of the last character of the last split.
analyzer/src/main/java/nl/basjes/parse/useragent/utils/Splitter.java