#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 50;
int b[maxn];
int cnt;
int main() {
  std::ios::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    string a;
    cin >> a;
    cnt = 0;
    bool flag = true;
    for (int i = 0; i < a.size(); i++) {
      int t = a[i] - 'a';
      b[cnt++] = t;
    }
    sort(b, b + cnt);
    for (int i = 1; i < cnt; i++) {
      if (b[i] - b[i - 1] != 1) {
        flag = false;
      }
    }
    if (flag)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
