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