#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    string s;
    cin >> s;
    sort(s.begin(), s.end());
    map<char, int> letter;
    bool flag = true;
    for (int i = 0; i < s.length(); i++) {
      letter[s[i]]++;
      if (letter.count(s[i]) > 1) flag = false;
      if (i > 0 && s[i] - 1 != s[i - 1]) flag = false;
    }
    puts(flag ? "Yes" : "No");
  }
}
