Removing unnecessary white spaces in LexicalAnalyzer class