#include <bits/stdc++.h>
using namespace std;
int main() {
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    long long x = s.length();
    sort(s.begin(), s.end());
    long long flag = 0;
    for (int i = 1; i < s.length(); i++) {
      if (s[i] == s[i - 1]) {
        cout << "No" << endl;
        flag = 1;
        break;
      }
      if ((long long)s[i] != ((long long)s[i - 1]) + 1) {
        cout << "No" << endl;
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
