remove extraneous whitespace