
LTRIM$ can be used to remove all space characters from the beginning of a string. LTRIM$ needs a single argument that is the source string, and generates a new string where all trailing spaces are stripped off.
This example demonstrates the effect of LTRIM$:
outmode -2 let a$ = "hello " let b$ = " world !" let c$ = ltrim$(a$) + ltrim$(b$ print c$
Only spaces (ASCII value 0x20) are removed. Other white space characters are not. See also RTRIM$.