Replacing is the action of searching a string for a sub-string and replacing it with a different string.
Replacing is the action of searching a string (the haystack) for a sub-string (the needle) and replacing it with a different string.
for example, replacing all 'l' within 'Hello' with 'y', would result in 'Heyyo'.