Tripadvisor interview question

Check if a string is a palindrome ignoring spaces.