#include <bits/stdc++.h>
using namespace std;
bool diverse(string x) {
  sort(x.begin(), x.end());
  for (int i = 1; i < x.size(); i++)
    if (x[i] - x[i - 1] != 1) return 0;
  return 1;
}
int main() {
  cin.tie(0);
  cout.tie(0);
  ios_base::sync_with_stdio(0);
  int n;
  cin >> n;
  cin.ignore(256, '\n');
  vector<string> in(n);
  for (int i = 0; i < n; i++) getline(cin, in[i], '\n');
  for (int i = 0; i < n; i++) {
    if (diverse(in[i]) || in[i].size() == 1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
