#include <bits/stdc++.h>
int main() {
  int i, j, k;
  int n, m, t;
  std::string str;
  std::cin >> n;
  for (int i = 0; i < n; i++) {
    std::cin >> str;
    std::sort(str.begin(), str.end());
    k = 1;
    for (int j = 1; j < str.size(); j++) {
      if (str[j] - str[j - 1] != 1) {
        k = 0;
        break;
      }
    }
    if (k)
      std::cout << "YES" << std::endl;
    else
      std::cout << "NO" << std::endl;
  }
  return 0;
}
