Added (palindrome?) helper function