short is palindrome function