#include <bits/stdc++.h>
using namespace std;
long long n, i, m, k, j, d[1000];
string a, b;
int main() {
  cin >> n;
  for (i = 1; i <= n; i++) {
    k = 0;
    cin >> a;
    m = int(a[0]);
    for (j = 1; j <= 200; j++) d[j] = 0;
    d[int(a[0])]++;
    for (j = 1; j < a.length(); j++) {
      if (m > int(a[j])) m = int(a[j]);
      d[int(a[j])]++;
    }
    for (j = m; j < m + a.length(); j++)
      if (d[j] != 1) {
        k = 1;
        break;
      }
    if (k == 1)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
  return 0;
}
