Trim whitespaces around the string provided by the user.
Consider that several spaces as only one separator for the arguments in the shell mode.