def isPalindrome(s): if not s: return True st = "".join(char for char in s if char.alphanum()).lower() return st == st[::-1]