#include <bits/stdc++.h>
using namespace std;
char s[105];
bool diverse() {
  int tam = 0;
  for (int i = 0; s[i] != '\0'; ++i) tam++;
  if (tam > 26) return false;
  sort(s, s + tam);
  for (int i = 0; i < tam - 1; ++i)
    if (s[i] + 1 != s[i + 1]) return false;
  return true;
}
int main() {
  int n;
  scanf("%d", &n);
  while (n--) {
    scanf("%s", s);
    if (diverse())
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
