How can I remove a URL from theme.liquid content_for_header?

How can I remove a url from shopify content_for_header in theme.liquid

I tried using capture but it did not work.

Is there any other way or is there a problem with capture.

Can I see the code? It’s still a very weird thing to try and remove in general as whatever benefits you’re hoping to see often don’t outweigh losing what that drop loads.

I got it working but now I don’t know how to remove multiple url’s from this.

{% capture content_for_header %}
{{ content_for_header | replace: ‘https://wheelieoptin.mpireapps.io/script?shop=myshopify.com’, ‘“”’ }}
{% endcapture %}

How to remove/replace multiple urls.