Remove extra spaces before code