#C14583. Valid Palindrome Checker
Valid Palindrome Checker
Valid Palindrome Checker
Given a string S
, determine whether it is a valid palindrome. A palindrome reads the same backwards as forwards after removing all non-alphanumeric characters and ignoring case. In other words, after filtering out spaces, punctuation, and other non-alphanumeric symbols, the string should be compared with its reversal.
For example, the string "A man, a plan, a canal: Panama" is considered a palindrome.
Your task is to process the input from standard input and output the result to standard output as specified.
inputFormat
The input consists of a single line containing the string S
.
outputFormat
Output one line: True
if the input string is a palindrome according to the above criteria, or False
otherwise.
A man, a plan, a canal: Panama
True
</p>