#include <bits/stdc++.h>
using namespace std;
bool fun(int x, int y) { return x > y; }
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int t;
  cin >> t;
  while (t--) {
    int i = 0, flag = 0, flag2 = 0;
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    map<char, int> m;
    for (auto x : s) m[x]++;
    for (auto it : m) {
      if (it.second > 1) {
        cout << "No" << '\n';
        flag2 = 1;
        break;
      }
    }
    if (flag2 == 1) continue;
    int x = s.front();
    int y = s.back();
    for (x; x <= y; x++) {
      if (s.at(i) != char(x)) {
        flag = 1;
        break;
      }
      i++;
    }
    flag == 0 ? cout << "Yes" << '\n' : cout << "No" << '\n';
  }
}
