var$ = LeftStr(string$, len[, encoding])
len leftmost characters of string$.
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.
test$ = LeftStr("Hello World!", 5)
Print(test$)
This will print "Hello" to the screen.