remove spaces inside brackets