Palindrome related programs