Python zastąp tylko pierwszą instancję
text.replace("text", "new", count)
# count is the number of instances you want to replace
Blushing Beaver
text.replace("text", "new", count)
# count is the number of instances you want to replace