Palindrome tests for strings and numbers