Detects whether a text string is a palindrome