Building a Palindrome Checker using Split, Join and replace methods