python replace first occurrence of character in string code example
Example: python replace only first instance
text.replace("text", "new", count)
# count is the number of instances you want to replace
text.replace("text", "new", count)
# count is the number of instances you want to replace