Replace braces with brackets