it=int(input()) alphabet="ABCDEFGHIJKLMNOPQRSTUVWXYZ" for i in range(it): a =input() a=''.join(set(a)) a= ''.join(sorted(a)) if a in alphabet: print("YES") else: print("NO")