fixed an edge case in palindrome where strings of different lengths were counted as being palindromes if the only difference between the two were the extranseous char on one string (eg 'tact', 'cat')