human
Replace first occurence of string
assistant
Here is some code to replace only first occurence of string `TEST` from a string `longlongTESTstringTEST`

'longlongTESTstringTEST'.replace('TEST', '?', 1)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.