#include <bits/stdc++.h>
using namespace std;
bool check(string s) {
  sort(s.begin(), s.end());
  for (int i = 1; i < s.size(); ++i)
    if (s[i] - s[i - 1] != 1) return false;
  for (int i = 0; i + 1 < s.size(); i++)
    for (int j = i + 1; j < s.size(); j++)
      if (s[i] == s[j]) return false;
  return true;
}
int main() {
  int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    if (check(s))
      cout << "YES";
    else
      cout << "NO";
    cout << endl;
  }
  return 0;
}
