ispalindrome function + tests