clear unneeded whitespace