public boolean doMatch(CharStream cs, boolean ignore, boolean tent) {
        Label label = cs.mark();
        for (int i = 0; i < text.length(); i++) {
            int ch = cs.next();
            if (ch == -1 || ch != text.charAt(i)) {
                cs.reset(label);
                cs.unmark(label);
                return false;
            }
        }
        cs.unmark(label);
        return true;

    }