#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  string s;
  cin >> n;
  while (n--) {
    cin >> s;
    sort(s.begin(), s.end());
    bool ok = 1;
    for (int i = 1; i < s.size(); ++i)
      if ((int)s[i] != (int)s[i - 1] + 1) ok = 0;
    cout << (ok ? "Yes" : "No");
    cout << '\n';
  }
}
