Moved function for identifying palindromes to utility lib.