Remove extra white spaces, add check_str to the user input.