Checks if the given string is a palindrome.
bool isPalindrome(String input) { String reversed = reverse(input); return input == reversed; }