#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    if (set<char>(s.begin(), s.end()).size() == s.length() &&
        *max_element(s.begin(), s.end()) ==
            char(*min_element(s.begin(), s.end()) + (s.length() - 1))) {
      cout << "Yes"
           << "\n";
      ;
    } else {
      cout << "No"
           << "\n";
      ;
    }
  }
}
