If I have a string "knockknock", and use the string method replace
s = "knockknock"
s = s.replace("knock", "bam")
s
"bambam"
it replaces both occurences of the substring at once. Is it possible to replace each substring individually as in ("bamknock", "knockbam")?