remove spaces inside `[]`