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