Amex Membership Rewards can normalize user-entered search text before processing it. Implement a function that determines whether a string is a palindrome after converting letters to lowercase and ignoring every non-alphanumeric character.
A palindrome reads the same forward and backward under these rules. Return True when it is a palindrome and False otherwise.
text containing zero or more ASCII letters, digits, spaces, and punctuation.def is_palindrome(text):