#include <bits/stdc++.h>
using namespace std;
bool notok(char a, char b) {
  int x = a - 'a';
  int y = b - 'a';
  if (x - y == 1 || y - x == 1) return true;
  return false;
}
int main() {
  int i, n;
  cin >> n;
  while (n--) {
    string a;
    cin >> a;
    if (a.size() == 1) {
      cout << "Yes";
      cout << endl;
      continue;
    }
    bool ans = true;
    unordered_map<char, int> mp;
    sort(a.begin(), a.end());
    mp[a[0]]++;
    for (i = 1; i < a.size(); i++) {
      mp[a[i]]++;
      if (mp[a[i]] > 1) {
        ans = false;
      }
      if (!notok(a[i], a[i - 1])) {
        ans = false;
      }
    }
    if (ans)
      cout << "Yes";
    else
      cout << "NO";
    cout << endl;
  }
}
