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

#define fast_io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);

using ll = long long ;

int main()
{
	fast_io
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
	freopen("error.txt", "w", stderr);
#endif

	int tt ;
	cin >> tt ;
	while (tt--)
	{
		string s ;
		cin >> s ;
		bool ispossible = 1 ;
		int n = s.size() ;




		for (int i = 0 ; i < n ; i++)
		{
			for (int j = i + 1 ; j < n; j++)
			{
				if (s[i] == s[j])
				{
					ispossible = 0 ;
					break ;
				}
			}
			if (!ispossible)
			{
				break ;
			}
		}


		if (!ispossible)
		{
			cout << "No\n";
			continue ;
		}



		for (int i = 0 ; i < n ; i++)
		{
			if (s[i] > 96 + n)
			{
				ispossible = 0 ;
				break ;
			}
		}
		if (!ispossible)
		{
			cout << "No\n";
			continue ;
		}



		int dexin = s.find('a') ;

		for (int i = dexin + 1 ; i < n - 1 ; i++)
		{
			if (s[i] >= s[i + 1])
			{
				ispossible = 0 ;
				break ;
			}
		}
		if (!ispossible)
		{
			cout << "No\n";
			continue ;
		}


		for (int i = dexin - 1 ; i >= 1 ; i--)
		{
			if (s[i] >= s[i - 1])
			{
				ispossible = 0 ;
				break ;
			}
		}
		if (ispossible)
		{
			cout << "Yes\n" ;
			continue ;
		}
		cout << "No\n" ;

	}
}


//checkllist

// all the characters in the string are unique

// all the characters are within the permissible value according to the size of the strig

// from both directions of a the string should be sorted