@d-healey, Thanks D, I looked into that but couldn't quite get it to work but it lead me to some other string functions such as replace which ended up being exactly what I was looking for. For anybody looking for an answer to this thread, I ended up using
const var oldstr = "{PROJECT_FOLDER}";
const var newstr = "";
.replace(oldstr, newstr)