fixed isdigit and trigrams