Renamed str_repr to ngram_repr