#include <bits/stdc++.h>
using namespace std;
long long n;
void solve() {
  cin >> n;
  vector<string> s(n);
  for (long long i = 0; i <= n - 1; i++) {
    cin >> s[i];
    if (s[i].length() == 1) {
      cout << "Yes\n";
      continue;
    }
    if (s[i].length() > 26) {
      cout << "No" << '\n';
      continue;
    }
    bool flag = false;
    sort(s[i].begin(), s[i].end());
    for (long long j = 0; j <= s[i].length() - 2; j++) {
      if (s[i][j + 1] != s[i][j] + 1) flag = true;
    }
    if (flag) {
      cout << "No\n";
      continue;
    }
    cout << "Yes\n";
  }
}
int main() {
  ios::sync_with_stdio(false);
  solve();
}
