handle trailing whitespace in dictionary file.