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