#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    priority_queue<char> pq;
    set<char> te;
    for (int i = 0; i < s.length(); i++) {
      te.insert(s[i]);
      pq.push(s[i]);
    }
    if (te.size() != s.length()) {
      cout << "No\n";
    } else {
      char prev = pq.top();
      pq.pop();
      while (!pq.empty()) {
        if (int(prev) != int(pq.top()) + 1) {
          break;
        }
        prev = pq.top();
        pq.pop();
      }
      if (pq.empty()) {
        cout << "Yes\n";
      } else {
        cout << "No\n";
      }
    }
  }
  return 0;
}
