#include <bits/stdc++.h>
using namespace std;
int main() {
  int i, j, k, n;
  string s;
  cin >> n;
  while (n--) {
    cin >> s;
    sort(s.begin(), s.end());
    bool ck = true;
    for (i = 1; i < s.size(); i++) {
      if (s[i - 1] + 1 != s[i]) {
        ck = false;
        cout << "No" << endl;
        break;
      }
    }
    if (ck) cout << "Yes" << endl;
  }
  return 0;
}
