Fixed ngram feature to string bug