#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  vector<string> ss(n);
  for (int i = 0; i < n; i++) {
    cin >> ss[i];
  }
  for (int i = 0; i < n; i++) {
    s = ss[i];
    bool flag = 1;
    if (s.length() > 26) {
      cout << "No\n";
      continue;
    } else {
      sort(s.begin(), s.end());
      int start = s[0];
      for (int j = 1; j < s.length(); j++) {
        if (s[j] == start + 1) {
          start = s[j];
        } else {
          cout << "No\n";
          flag = 0;
          break;
        }
      }
      if (flag == 1) {
        cout << "Yes\n";
      }
    }
  }
  return 0;
}
