How to do substring on a API response

Yes. This is great. Thank you.
It wasn’t working initially, but if I use this line then it works:

var responseDataModified = pm.response.json();