The following JXA script:
Leading tabs deleted.kmmacros (1.8 KB)
- Trim Results — removes white space from the start and end of the scripts results.
Thank you, @Nige_S ! You solved the problem. Works perfectly now.