#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  string s;
  while (n--) {
    cin >> s;
    if (set<char>(s.begin(), s.end()).size() == s.length() &&
        *max_element(s.begin(), s.end()) - *min_element(s.begin(), s.end()) ==
            s.length() - 1) {
      cout << "YES\n";
    } else {
      cout << "NO\n";
    }
  }
  return 0;
}
