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