#include <bits/stdc++.h>
using namespace std;
int main() {
  int tc;
  cin >> tc;
  while (tc--) {
    string s;
    cin >> s;
    int flag = 1;
    sort(s.begin(), s.end());
    for (int i = 1; i < s.size(); i++) {
      if (s[i] - s[i - 1] == 1)
        flag = 1;
      else {
        flag = 0;
        break;
      }
    }
    if (!flag)
      cout << "No" << endl;
    else
      cout << "Yes\n";
  }
}
