fixing whitespace in script block