#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    string s;
    cin >> s;
    int l = s.size();
    if (l == 1) {
      cout << "Yes\n";
    } else {
      int arr[28] = {0};
      for (int i = 0; i < l; i++) {
        arr[s[i] - 97]++;
      }
      int flag = 1;
      for (int i = 0; i < 26; i++) {
        if (arr[i] > 1) {
          flag = 0;
          break;
        } else if (arr[i] == 1) {
          for (int j = i + 1; j < 26; j++) {
            if (arr[j] > 1) {
              flag = 0;
              break;
            } else if (arr[j] == 0) {
              for (int k = j + 1; k < 26; k++) {
                if (arr[k] >= 1) {
                  flag = 0;
                  break;
                }
              }
            }
          }
        }
      }
      if (flag == 1)
        cout << "Yes\n";
      else
        cout << "No\n";
    }
  }
  return 0;
}
