You have also to apply the palindrome check to the
transformed string.
Try
def is_palindrome(pal):
newpal = ''.join(ch for ch in pal if ch.isalpha())
newpal = newpal.lower()
print(newpal)
return check_palindrome(newpal)
def check_palindrome(pal):
if len(pal) <= 1:
return True
else:
return pal[0] == pal[-1] and check_palindrome(pal[1:-1])