fix replacement regex