#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int re = 1;
    int len = s.length();
    std::sort(s.begin(), s.end());
    if (len != 1) {
      for (int i = 1; i < len; i++) {
        if ((s[i] - 'a') - (s[i - 1] - 'a') != 1) {
          re = 0;
          break;
        }
      }
    }
    if (re == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
