替换连续字符串