#include <bits/stdc++.h>
using namespace std;
int a[200];
int main() {
  ios::sync_with_stdio(0);
  string s;
  int n;
  cin >> n;
  while (n--) {
    bool flag = false;
    memset(a, 0, sizeof a);
    cin >> s;
    int mx = s[0], mn = s[0];
    for (int i = 0; i < s.size(); i++) {
      mx = max(mx, (int)s[i]);
      mn = min(mn, (int)s[i]);
      if (s[i] >= 97 && s[i] <= 122) {
        a[s[i]]++;
      } else {
        cout << "NO" << endl;
        flag = true;
        break;
      }
    }
    if (!flag) {
      bool e = false;
      for (int i = mn; i <= mx; i++) {
        if (a[i] > 1 || a[i] == 0) {
          e = true;
          break;
        }
      }
      if (!e)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
  return 0;
}
