class Solution(object):

    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        s_new = filter(str.isalnum, s).upper()
        return s_new == s_new[::-1]

1a61488405d1a5912d4e38869bc563ee6c9755cb
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        s_new = filter(str.isalnum, s).upper()
        return s_new == s_new[::-1]
