# how to enable Rule to StringReplace

this is a not workable code to test whether bracket is legal:

("(({{[[]]}})" //. {"{}" -> "", "[]" -> "", "()" -> ""}) == ""


I want to know that how to make Rule have the same effect as StringReplace

How about doing this instead of adapting RepaceRepeated:
FixedPoint[