#C11630. Palindrome Checker

    ID: 40968 Type: Default 1000ms 256MiB

Palindrome Checker

Palindrome Checker

You are given a string that may contain spaces, punctuation, and mixed case letters. Your task is to determine whether the string is a palindrome after removing all non-alphanumeric characters and converting all letters to lowercase.

A palindrome is a string that reads the same forwards and backwards. Formally, if we let \( s \) be the cleaned string, the condition for being a palindrome can be expressed in LaTeX as:

$$\text{isPalindrome}(s) \iff s = s^R,$$ where \( s^R \) represents the reverse of \( s \).</p>

Return "True" if the string is a palindrome, and "False" otherwise.

inputFormat

The input is provided via standard input (stdin) as a single line containing the string to be checked. The string might be empty and may contain spaces, punctuation, and mixed case letters.

outputFormat

Output a single line to standard output (stdout) containing either "True" if the string is a palindrome (after cleaning) or "False" otherwise.

## sample
a
True