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