◄Contents► ◄Index► ◄Back► ────────────────────────────────────────────────────────────────────────────── Remove leading and trailing spaces from a string. LTRIM$(stringexpression$) RTRIM$(stringexpression$) ■ stringexpression$ Any string expression. Example: a$ = " Basic " PRINT "*" + a$ + "*" 'Output is: * Basic * PRINT "*" + LTRIM$(a$) + "*" 'Output is: *Basic * PRINT "*" + RTRIM$(a$) + "*" 'Output is: * Basic*