Don't override the toString() with contents of trie. Have a separate function for it.