s$ = TrimStr(src$, chr$, tail[, encoding])
chr$ from
the head or the tail of src$. The string chr$ must only contain one character.
tail must be True to start stripping from the right or False to start from the
left side. The stripped string will be returned.
The optional encoding parameter can be used to set the character encoding
to use. This defaults to the default string encoding set using SetDefaultEncoding().
See Character encodings for details.
True or False indicating where to begin
a$ = TrimStr("aaaaHello World", "a", False)
DebugPrint(a$)
Prints "Hello World".
a$ = TrimStr("aaaaHello Worldaaaa", "a", True)
DebugPrint(a$)
Prints "aaaaHello World".