#C6940. Palindrome Checker
Palindrome Checker
Palindrome Checker
Your task is to write a program to check whether a given string is a palindrome. The program should ignore spaces, punctuation marks, and the case of letters when performing the check. In other words, the program must first remove all characters that are not alphanumeric, convert the remaining characters to lowercase, and then determine if the resulting string reads the same forwards and backwards.
For example, the string "A man, a plan, a canal, Panama!" is considered a palindrome.
If the input string is a palindrome by these criteria, output "True"; otherwise, output "False".
inputFormat
The input consists of a single line containing the string to be checked. The string can include spaces, punctuation, and digits.
outputFormat
Output a single line: "True" if the processed string is a palindrome, or "False" otherwise.
## sampleA man, a plan, a canal, Panama!
True