Function for replace string with Regex:
sb.replace("HI NAME HI NAME",/NAME/g, "MERLIN")
-> "HI MERLIN HI MERLIN"