replace_first

Filter = replace_first

Replaces only the first occurrence of the first argument is a string with the second argument.

INPUT

OUTPUT

{{ "Take my protein pills and put my helmet on" | replace_first: "my", "your" }}

Take your protein pills and put my helmet on