modified Palindrome to properly reverse