11741 - Typo v2   

Description

Difficulty: ★★☆☆☆

You need to design a new typo detector for debugging, there are only two types of typos to detect:


(1) Accidentally capitalize exactly one lowercase character.

(2) Accidentally switches two different characters (Not only detect adjacent characters)


Arc will input two strings s (the correct string) and t (the wrong string). Your design must be able to determine whether t meets exactly one of the four types of typo as above.

Input

The first line contains an integer T, representing the number of inputs Arc gives to you.

The next T line contains two strings siti, representing the correct string and the wrong string.

It is guaranteed that:

  • 1 ≤ T ≤ 10
  • 1 ≤ | si |, | ti | ≤ 100

Output

For each input, if t meets exactly one of the two types of typo, please output "Yes", 

otherwise, please output "No".

Sample Input  Download

Sample Output  Download

Tags




Discuss