specialized replace! for regex