class Solution(object):
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        l = []
        if s == "":
            return True
        else:
            for i in s:
                if i.isalnum():
                    l.append(i.lower())
        return l == l[::-1]
0458702c3bdc9402d0cd2d3a452590885fba18ff
<mask token>

class Solution(object):
    <mask token>

class Solution(object):

    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        l = []
        if s == '':
            return True
        else:
            for i in s:
                if i.isalnum():
                    l.append(i.lower())
        return l == l[::-1]

class Solution(object):
    def isPalindrome(self, s):
        """
        :type s: str
        :rtype: bool
        """
        l = []
        if s == "":
            return True
        else:
            for i in s:
                if i.isalnum():
                    l.append(i.lower())
        return l == l[::-1]