minor bug, and removed the feature that returnstring must be equal or longer than inputstring in trie