Given a string, check if it is a palindrome by ignoring spaces. E.g. race car would be a palindrome.
The first line of input contains an integer T denoting the no of T test cases. The only line in each test case consists of String S.
For each test case in a new line print YES if String is palindromic else print NO.
1<=|Length of String|<=1000
If you have purchased any course from GeeksforGeeks then please ask your doubt on course discussion forum. You will get quick replies from GFG Moderators there.