#include <bits/stdc++.h>
using namespace std;
int n, k;
map<char, int> u;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    string s;
    cin >> s;
    u.clear();
    k = 0;
    for (int i = 0; i < s.size(); i++) {
      if (u[s[i]]) {
        cout << "No\n";
        k = 1;
        break;
      }
      u[s[i]] = 1;
    }
    if (k == 0) {
      sort(s.begin(), s.end());
      for (int i = 0; i < s.size(); i++) {
        if (int(s[i]) - int(s[i - 1]) != 1 && i > 0) {
          cout << "No\n";
          k = 1;
          break;
        }
      }
    }
    if (!k) {
      cout << "Yes\n";
    }
  }
}
