#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  set<char> st;
  int n;
  cin >> n;
  string alph = "abcdefghijklmnopqrstuvwxyz";
  while (n--) {
    int mn, mx;
    mn = 0;
    mx = 0;
    st.clear();
    string s;
    cin >> s;
    for (int i = 0; i < s.size(); i++) {
      st.insert(s[i]);
    }
    if (s.size() != st.size()) {
      cout << "NO" << endl;
      continue;
    }
    for (char i : st) {
      mn += i;
    }
    sort(s.begin(), s.end());
    for (int i = 0; i < alph.size(); i++) {
      if (alph[i] == *st.begin()) {
        int cnt = s.size();
        for (int j = i; cnt > 0; j++, cnt--) {
          mx += alph[j];
        }
      }
    }
    if (mx == mn)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
