Use single-pass regex replacement instead of multiple replaceAll calls. This prevents shorter names from matching inside already-replaced longer names. For example, with names '张三' and '张三丰', the text '张三丰是大师' now correctly highlights only '张三丰', not '张三' within it.