Append $ to input strings in SuffixTree constructor