added functionality to handle char_wb (char ngrams, but don't count ngrams that cross across two words)