#include <bits/stdc++.h>
using namespace std;
int main(void) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    string S;
    cin >> S;
    int k = S.length();
    sort(S.begin(), S.end());
    int cnt[26] = {};
    bool ok = true;
    for (int j = 0; j < k - 1; j++) {
      if (S[j] + 1 != S[j + 1]) {
        ok = false;
      }
    }
    if (ok) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
  return 0;
}
