#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  int n;
  cin >> n;
  while (n--) {
    string t;
    bool is = true;
    cin >> t;
    sort(t.begin(), t.end());
    for (int i = 1; i <= (int)t.size() - 1; i++) {
      if (t[i] - t[i - 1] != 1) {
        is = false;
        break;
      }
    }
    if (is) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
}
