#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int d = s.size();
    int a[d], k = 0, p = 0;
    for (int i = 0; i < d; i++) {
      a[i] = int(int(s[i])) - 97;
    }
    sort(a, a + d);
    for (int i = 0; i < d - 1; i++) {
      if (a[i] == a[i + 1] || a[i] + 1 != a[i + 1]) {
        k++;
      }
    }
    if (k == 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
