Strip out unnecessary whitespace.