Text search with trie tree