add method to determine if a string is a palindrome + associated tests