Template:Replace

Usage
Returns string with the first n occurrences of target replaced with replacement. Omitting  will replace all occurrences. Space counts as a character if placed in any of the first three parameters.

Examples

 * → One NINE NINE three NINE four NINENINE five
 * → One NINE NINE three two four twotwo five
 * → foo bar

Space

 * → One—two two—three two—four twotwo—five
 * → One-two two-three two-four twotwo-five