#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  string a;
  scanf("%d", &n);
  while (n--) {
    cin >> a;
    int len = a.length();
    sort(a.begin(), a.end());
    int flag = 0;
    for (int i = 1; i < len; i++) {
      if (abs(a[i] - a[i - 1]) == 1) {
        flag = 1;
      } else if (a[i] == a[i - 1]) {
        flag = 0;
        break;
      } else {
        flag = 0;
        break;
      }
    }
    if (flag || len == 1)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
