ES5 Shim
The trim() method removes whitespace from both ends of a string.
Source: MDN
npm install @extendscript/aes.patch.string.trim
#include 'node_modules/@extendscript/aes.patch.string.trim/trim.js'
You can test the code against a range of targets:
npm run test target-1 target-2
We keep a log of test results