#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, l, minc, maxc;
  string s;
  cin >> n;
  map<int, int> dict;
  for (int i = 0; i < n; i++) {
    cin >> s;
    l = s.length();
    if (l == 1) {
      cout << "YES"
           << "\n";
      continue;
    }
    for (int j = 0; j < l; j++) {
      if (j == 0) {
        minc = int(s[j]);
        maxc = int(s[j]);
        dict[int(s[j])] += 1;
        continue;
      }
      if (minc > int(s[j])) {
        minc = int(s[j]);
      }
      if (maxc < int(s[j])) {
        maxc = int(s[j]);
      }
      dict[int(s[j])] += 1;
    }
    for (int h = minc; h <= maxc; h++) {
      if (dict[h] == 1) {
        if (h == maxc) {
          cout << "YES"
               << "\n";
          break;
        }
        continue;
      } else {
        cout << "NO"
             << "\n";
        break;
      }
    }
    dict.clear();
  }
  return 0;
}
