minor tweaks to the print function in the palindrome class