#include <bits/stdc++.h>
using namespace std;
int main() {
  long n;
  cin >> n;
  char a[100];
  string s;
  bool ok = true;
  for (long i = 0; i < n; i++) {
    ok = true;
    cin >> s;
    for (long i = 0; i < s.length(); i++) {
      a[i] = s[i];
    }
    sort(a, a + s.length());
    for (long i = 0; i < s.length() - 1; i++) {
      if (a[i] != a[i + 1] - 1) {
        ok = false;
        break;
      }
    }
    if (ok == true) {
      cout << "YES";
    } else
      cout << "NO";
    cout << endl;
  }
}
