#include<bits/stdc++.h>
#define ll long long
using namespace std;

int t ;

int cd[30];

bool check(string s){
	for(int i = 0;i<s.size();i++){
		int a = int (s[i]) - 96;
		if(cd[a] == 1) return false;
		else cd[a] = 1;
	}
	int l = 0 , r = s.size()-1;
	for(int i = s.size() ; i > 0;i--){
		if(s[l] == char(i+96) ){
			l++;
		}
		else if(s[r] == char(i+96) ){
			r--;
		}
		else return false;
	}
	return true;
		
}


int main (){
	ios::sync_with_stdio(0),cin.tie(0);
	string s;
	cin >> t;
	while(t--){
		for(int i = 0;i< 30;i++)cd[i] = 0;
		cin >> s;
		if (check(s)) cout<<"Yes"<<endl;
		else cout << "No" <<endl;
	}
	
	
	return 0;
}


