#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int _ = 0; _ < n; ++_) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    bool ok = true;
    char prev = s[0];
    for (int i = 1; i < s.size(); ++i) {
      if (s[i] != prev + 1) ok = false;
      prev += 1;
    }
    if (ok)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
