use list comprehension for dictionary cleanup, solves problems with spaces after symbols