Fixed Palindrome class to properly reverse strings

Hopefully this is helpful rather than annoying :)