Additional functions for palindromes