I should start doing some harder exercises... function that checks whether an input string is a palindrome or not