Strip extraneous whitespace