If the dictionary entry contains heading or trailing space, trim it