check words and special tokens separately