Remove excess whitespace from output