removing duplicate words from the dict values