Strip whitespace from some inputs