Binita's String Functions

Are 'Listen' and 'Silent' anagrams? Yes

Is 'A man, a plan, a canal, Panama!' a palindrome? Yes

Original: aaabbbccdaaa

Compressed: a3b3c2d1a3