added grapheme parse to tokenize function