#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int min = 999;
    bool p = 1;
    int b[200] = {0};
    char a[10000];
    scanf("%s", &a);
    int len = strlen(a);
    for (int j = 0; j < len; j++) {
      int x;
      x = a[j];
      if (min > x) min = x;
      b[x]++;
    }
    for (int j = min; j < min + len; j++)
      if (b[j] != 1) p = 0;
    if (p == 1)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
}
