Add convenience function to initialize replacer with map.
go fmt