Appearance
Replaces the first instance of a substring with a different string.
{{ string | replace_first: substring, replacement }}
{{ 'red shirt, red hat' | replace_first: 'red', 'blue' }}
Output
blue shirt, red hat