remove whitespace from dictionary values