Fixed replacement of ] with ""