Add palindrome and reverse string method