#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  while (n--) {
    string foo;
    cin >> foo;
    set<char> lol;
    if (foo.length() > 26) {
      cout << "No" << endl;
    } else {
      for (long long int i = 0; i < foo.length(); i++) {
        lol.insert(foo[i]);
      }
      int a = (int)*lol.begin();
      int b = (int)*(--lol.end());
      if (1 - a + b == lol.size() && 1 - a + b == foo.length())
        cout << "Yes" << endl;
      else
        cout << "No" << endl;
    }
  }
  return 0;
}
