check if a user input string is palindrome - single string