replaced file

changed from trie implementation to regex