#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int f = 0;
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    ;
    for (int i = 0; i < s.size() - 1; i++)
      if (s[i + 1] - s[i] != 1) {
        cout << "NO";
        f = 1;
        break;
      }
    if (!f) cout << "YES";
    cout << "\n";
  }
}
