private static boolean testChars(Token token, char[] test, int pos) {
        if (pos + test.length - 1 > token.getEnd()) {
            return false;
        }
        for (int i = 0; i < test.length; i++) {
            final char c1 = token.getChars()[pos + i];
            final char c2 = test[i];
            if (c1 != c2) {
                return false;
            }
        }
        return true;
    }
This code is left here in case we decide we want to allow quoted param names.

@param tokens
@return
stroom-query/stroom-query-api/src/main/java/stroom/query/api/token/BasicTokeniser.java