added string search using trie