Replace brace with square bracket