executeScript_Sandbox to add a part of text in a variable

This is the solution, I didn’t remember it’s been a long time since I wrote it