A string is considered a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forward and backward.
Alphanumeric characters include: Lowercase letters, Uppercase letters and Digits.
Example 1:
Input: s = "A man, a plan, a canal: Panama"
Output: true
Explanation: After removing non-alphanumeric characters and converting to lowercase: "amanaplanacanalpanama"
The string reads the same from both directions.
Example 2:
Input: s = "race a car"
Output: false
Explanation: After processing the string: "raceacar", the string is not the same when reversed.
Example 3:
Input: s = " "
Output: true
Explanation: After removing non-alphanumeric characters, the string becomes empty. An empty string is considered a valid palindrome.