#include <bits/stdc++.h>
using namespace std;
int main() {
  char s[100000];
  int i, j, k, m, l, n;
  cin >> n;
  int flag = 0;
  while (n--) {
    cin >> s;
    l = strlen(s);
    sort(s, s + l);
    for (i = 1; i < l; i++) {
      if ((s[i] - s[i - 1] != 1)) {
        flag = 1;
        break;
      }
    }
    if (flag == 0) {
      cout << "YeS" << endl;
    } else if (flag == 1) {
      cout << "No" << endl;
    }
    flag = 0;
  }
  return 0;
}
