Clean up whitespace in output script