Fix string replacement regex