Remove spaces before brackets