FourKites may receive tracking labels and reference strings in inconsistent capitalization or spacing. Write a function that determines whether a given string is a palindrome after ignoring space characters and capitalization.
A palindrome reads identically from left to right and right to left after normalization. Preserve every non-space character, including punctuation, and compare letters without regard to case.
Implement is_palindrome(s), where s is a string. Return True if the normalized string is a palindrome, otherwise return False.
Normalization consists of:
' ').You may use a two-pointer approach that scans inward from both ends. Do not assume the input contains only letters.
def is_palindrome(s):