Replacing instances
Replacing all instances
Replacing only if first term
Replacing the last term if matched
Matching replacement