Got a replaceBetween() function