Strip whitespace in input