Fixed bug where there was a white space in beginning of inserted words in trie