#C856. Palindromic String Checker
Palindromic String Checker
Palindromic String Checker
Given a string S, determine whether it is a palindrome by considering only alphanumeric characters and ignoring cases. In other words, let \( \text{cleaned}(S) \) be the string obtained by removing all non-alphanumeric characters from S and converting all letters to lowercase. The string is a palindrome if and only if \( \text{cleaned}(S) = \text{reversed(cleaned}(S)) \).
For example, the string "A man, a plan, a canal, Panama" should be considered a palindrome.
inputFormat
The input consists of a single line containing a string. This string may include spaces, punctuation, and mixed case letters.
outputFormat
Output a single line: "True" if the input string is a palindrome (ignoring non-alphanumeric characters and letter case), otherwise output "False".
## sampleA man, a plan, a canal, Panama
True