#include <bits/stdc++.h>
using namespace std;
const long long inf = 1e17;
const long long p = 1e9 + 7;
const long long N = 1e3 + 10;
using namespace std;
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long n;
    n = s.size();
    sort(s.begin(), s.end());
    bool f = 1;
    for (long long i = 1; i < n; i++)
      if ((s[i] - s[i - 1]) != 1) f = 0;
    if (f == 0)
      cout << "No\n";
    else
      cout << "Yes\n";
  }
}
