#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string str;
    string v = "YES";
    cin >> str;
    sort(str.begin(), str.end());
    for (int i = 1; i < str.size(); i++) {
      if ((int)str[i] != (int)str[i - 1] + 1) {
        v = "NO";
        break;
      }
    }
    cout << v << endl;
  }
}
