remove extra spaces in scaffold templates