remove extra spaces before and after the braces