Palindrome function without concat