#include <bits/stdc++.h>
using namespace std;
int main() {
  int c;
  cin >> c;
  for (int p = 0; p < c; p++) {
    string s, answer;
    cin >> s;
    int n = s.size();
    if (s == "zyxwvutsrqponmlkjihgfedcba" ||
        s == "abcdefghijklmnopqrstuvwxyz") {
      cout << "Yes" << endl;
      continue;
    }
    for (int k = 0; k < n; k++) {
      for (int i = k + 1; i < n; i++)
        if (s[k] == s[i]) {
          answer = "No";
        }
    }
    if (answer == "No") {
      cout << answer << endl;
      continue;
    }
    char m = 'z' + 1;
    for (int k = 0; k < n; k++) {
      m = min(m, s[k]);
    }
    string M;
    M[0] = m;
    int j = 1;
    for (int k = 1; k < n; k++) {
      M[k] = M[0] + j;
      j++;
    }
    int ind = 0;
    for (int k = 0; k < n; k++) {
      char r = s[k];
      for (int i = 0; i < n; i++) {
        char g = M[i];
        if (r == g) ind++;
      }
    }
    if (ind == n)
      answer = "Yes";
    else
      answer = "No";
    for (int k = 0; k < n; k++) {
      for (int i = k + 1; i < n; i++)
        if (s[k] == s[i]) {
          answer = "No";
        }
    }
    cout << answer << endl;
  }
  return 0;
}
