class Solution:
# @param s, a string
# @return a boolean
def isPalindrome(self, s):
newS = []
for i in s:
if '0' <= i <= '9' or 'a' <= i <= 'z': newS.append(i)
elif 'A' <= i <= 'Z': newS.append(chr(ord(i) - ord('A') + ord('a')))
return newS == newS[::-1]