get rid of the white pace before `]`