Remove whitespace from input