This is probably not complete enough maybe this will be more robust:

`JSON.stringify(str).slice(1, -1);`