Strip out unwanted white space