taking out whitespace in dictionariy