Path.
replace
Return a copy with all occurrences of substring old replaced by new.
countMaximum number of occurrences to replace. -1 (the default value) means replace all occurrences.
Maximum number of occurrences to replace. -1 (the default value) means replace all occurrences.
If the optional argument count is given, only the first count occurrences are replaced.