#include <bits/stdc++.h>
using namespace std;
bool check(char a, char b) {
  if (a - 1 == b) {
    return true;
  }
  return false;
}
int main() {
  int n;
  cin >> n;
  string S[n];
  for (int k = 0; k < n; k++) {
    cin >> S[k];
  }
  for (int k = 0; k < n; k++) {
    bool endedWithTrue = true;
    for (int j = 1; j < S[k].size(); j++) {
      sort(S[k].begin(), S[k].end());
      if (check(S[k][j], S[k][j - 1]) != true) {
        cout << "NO" << endl;
        endedWithTrue = false;
        break;
      }
    }
    if (endedWithTrue == true) {
      cout << "YES" << endl;
    }
  }
  return 0;
}
