#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  int n;
  cin >> n;
  while (n--) {
    string str;
    cin >> str;
    int cnt[26];
    memset(cnt, 0, sizeof cnt);
    for (auto ch : str) cnt[(ch - 'a')]++;
    bool check = false;
    for (int i = 0; i < 26; ++i) {
      if (cnt[i] > 1) check = true;
    }
    int k = 0;
    for (int i = 0; i < 26; ++i) {
      if (cnt[i]) {
        ++k;
        while (i < 26 && cnt[i]) ++i;
      }
    }
    if (k > 1) check = true;
    if (check)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
