Palindrome Checker updated for strings