Refactoring 'CharLexer'