Added similar string algorithm to Trie.