I have wrote script in simplescript and I see that when I am using trimleft("\t") command it is adding new empty line to the end of my document. is there any way to do that without adding this line? example with numbers of lines:

before:

1|     my text
2|          my text

after:

1|my text
2|my text
3|