#include <bits/stdc++.h>
using namespace std;
void input(vector<long long>& v, long long n) {
  for (long long i = 0; i < n; i++) {
    long long in;
    cin >> in;
    v.push_back(in);
  }
}
void output(vector<long long> v) {
  for (long long i = 0; i < v.size(); i++) cout << v[i] << " ";
}
int solve() {
  string s;
  cin >> s;
  sort(s.begin(), s.end());
  long long n = s.length();
  for (long long i = 0; i + 1 < n; i++) {
    if (s[i + 1] - s[i] != 1) {
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}
int main() {
  long long t;
  cin >> t;
  while (t--) solve();
  return 0;
}
