#include <bits/stdc++.h>
using namespace std;
int main() {
  int flag = 0, t;
  cin >> t;
  while (t--) {
    int cnt = 0;
    string a;
    int freq[26] = {0};
    cin >> a;
    int n = a.length();
    sort(a.begin(), a.end());
    for (int i = 0; i < n; i++) {
      freq[a[i] - 'a']++;
    }
    for (int i = 0; i < 26; i++) {
      if (freq[i] > 1) {
        cnt++;
      }
    }
    char b = *min_element(a.begin(), a.end());
    char c = *max_element(a.begin(), a.end());
    if ((cnt == 0 && c - b == n - 1) || n == 1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
