moved replacement function to strings.NewReplacer