trim ngrams