Use trie to store dictionary word