#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  bool a = true;
  string s;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> s;
    for (char j = 'a', cnt = 0, g = 0; cnt < s.length(); j++) {
      for (int jj = 0; jj < s.length(); jj++) {
        if (s[jj] == j) {
          g++;
        }
      }
      if (g > 1 || (g == 0 && cnt > 0)) {
        a = false;
        break;
      }
      cnt += g;
      g = 0;
    }
    if (a == 0) {
      cout << "NO";
    } else {
      cout << "YES";
    }
    cout << endl;
    a = true;
  }
  return 0;
}
