#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int n;
  cin >> n;
  while (n--) {
    string s;
    cin >> s;
    int m = s.length();
    int f = 1;
    for (char ch = 'a'; ch <= 'z'; ch++) {
      if (count(s.begin(), s.end(), ch) == 1) {
        if (ch + m - 1 > 'z') {
          f = 0;
          break;
        }
        for (char c = ch; c <= ch + m - 1; c++) {
          if (count(s.begin(), s.end(), c) != 1) {
            f = 0;
            break;
          }
        }
        break;
      }
      if (count(s.begin(), s.end(), ch) > 1) {
        f = 0;
        break;
      }
    }
    if (!f)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
