finish check-if-is-palindrome