bool checkStringOccurence(SuffixTree &tree, string word) { return tree.travelByString("smh") == tree.end(); }