#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t, m, n, x, a, b;
  string s;
  set<char> st;
  cin >> t;
  while (t--) {
    bool ring = true;
    cin >> s;
    sort(s.begin(), s.end());
    for (__typeof((int)s.size()) i = 1; i < ((int)s.size()); i++) {
      if (s[i] - s[i - 1] != 1) {
        ring = false;
        break;
      }
    }
    cout << (ring ? "Yes" : "No") << endl;
  }
  return 0;
}
