Added lexer method to get rid of meaningless characters like whitespaces, tabs and newlines.