Take input from the user and check's if palindrome