remove spaces around `{` and `}`