#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    int a = s[0], i = 0;
    int h = s.length();
    for (int i = 0; i < h; i++) {
      if (s[i] == a) {
        a++;
        if (i == h - 1)
          cout << "YES"
               << "\n";
      } else {
        cout << "NO"
             << "\n";
        break;
      }
    }
  }
  return 0;
}
