get rid of spaces around `{` and `}`