def is_palindrome(s): """Check whether a string is a palindrome"""