#include <bits/stdc++.h>
using namespace std;
int al[26];
int main() {
  int n;
  cin >> n;
  string s;
  for (int i = 0; i < n; i++) {
    bool checks = false, checke = false, check = true;
    cin >> s;
    for (int j = 0; j < 26; j++) al[j] = false;
    for (int j = 0; j < s.size(); j++) {
      if (al[s[j] - 'a'])
        check = false;
      else
        al[s[j] - 'a'] = true;
    }
    for (int j = 0; j < 26; j++) {
      if (al[j] && !checks) {
        checks = true;
      }
      if (!al[j] && checks) checke = true;
      if (al[j] && checke) check = false;
    }
    if (check)
      cout << "yes" << endl;
    else
      cout << "no" << endl;
  }
  return 0;
}
