'TESTstringTEST'.replace('TEST', 'replaced', 1) # output 'replacedstringTEST'
text.replace("text", "new", count) # count is the number of instances you want to replace