not incredibly useful, but a basic method to determine if a string is a palindrome