remove space inside brackets