In a Meta developer tooling surface such as Phabricator, text normalization often matters before validation. Write a function that returns True if a string is a palindrome after ignoring all non-alphanumeric characters and treating uppercase and lowercase letters as equal; otherwise return False.
sa-z, A-Z, 0-9).Example 1
s = "A man, a plan, a canal: Panama"True"amanaplanacanalpanama", which reads the same forward and backward.Example 2
s = "race a car"False"raceacar", which is not a palindrome.0 <= len(s) <= 2 * 10^5s may contain letters, digits, spaces, punctuation, and symbols