#include <iostream>
using namespace std;

const string alphabet = {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};

int main() {
    int t;
    cin >> t;
    while (t--) {
        string str;
        cin >> str;
        int a_pos = int(str.find('a'));
        int n = str.length();
        int l = a_pos > 0 ? a_pos - 1 : -1;
        int r = a_pos < n - 1 ? a_pos + 1 : -1;
        int alpha_pos = 1;
        int n_x = n - 1;
        if (a_pos != -1) {
            while (n_x != 0) {
                if (l != -1 && alphabet[alpha_pos] == str[l]){
                    l = l > 0 ? l - 1 : -1;
                }
                else if (r != -1 && alphabet[alpha_pos] == str[r]){
                    r = r < n - 1 ? r + 1 : -1;
                }
                else{
                    break;
                }
                n_x--;
                alpha_pos++;
            }
        }
        if (n_x == 0 && a_pos != -1){
            cout << "YES" << endl;
        }
        else{
            cout << "NO" << endl;
        }
    }
    return 0;
}