create ngram tokens from a string