Removed the while loop from nextSymbol and the charIndex from
AbstractRegexLexer.