#include <bits/stdc++.h>
using namespace std;
void solve() {
  string s;
  cin >> s;
  for (int i = 0; i < s.length(); i++) {
    for (int j = i + 1; j < s.length(); j++) {
      if (s[i] > s[j]) swap(s[i], s[j]);
    }
  }
  for (int i = 1; i < s.length(); i++) {
    if (s[i] - 1 != s[i - 1]) {
      cout << "No" << endl;
      return;
    }
  }
  cout << "Yes" << endl;
}
int main() {
  ios_base::sync_with_stdio(false);
  int sotest;
  cin >> sotest;
  while (sotest--) {
    solve();
  }
  return 0;
}
