Function Left$( str$,n )?

BlitzMax Forums/BlitzMax Beginners Area/Function Left$( str$,n )?

what is wrong with my code?Trying to get a grasp on string functions.
Graphics 800,600
Global text:String
Global a:Int

Repeat
a=GetChar()
text:+Chr(a)
If KeyDown(key_backspace)
	 text=Left(text,2)  'does this mean the left two characters?
EndIf
DrawText text,100,100
Flip;Cls
Until KeyDown(key_escape)


Believe it's something with my code.When I press backspace,text comes up blank.

Thanks,
mudcat