replace brackets