#include <bits/stdc++.h>
using namespace std;
int main() {
  int x;
  cin >> x;
  for (int i = 0; i < x; i++) {
    string s;
    cin >> s;
    bool t = false;
    int len = s.length();
    if (len == 1) {
      t = true;
    }
    sort(s.begin(), s.end());
    for (int j = 0; j < len; j++) {
      if (j == 0)
        continue;
      else if (j > 0) {
        if (s[j] == s[j - 1]) {
          t = false;
          break;
        } else if ((s[j] - s[j - 1]) == 1) {
          t = true;
        } else if ((s[j] - s[j - 1]) > 1) {
          t = false;
          break;
        }
      }
    }
    if (t == true)
      cout << "Yes \n";
    else
      cout << "No \n";
  }
  return 0;
}
