; Trim Example ; ------------ ; Trim$ removes the spaces from both ends of a string. typed$=" Robo " Print "A player typed their name as: '"+typed$+"'" Print "Trim$ cleans it up to: '"+Trim$(typed$)+"'" Print "" ; Great for reading back fixed-width save-file fields padded$=LSet$("Zelda",16) Print "Padded save field: '"+padded$+"'" Print "Trimmed back: '"+Trim$(padded$)+"'" ; Spaces in the middle are kept Print "" Print "Trim$(' brave knight ') = '"+Trim$(" brave knight ")+"'" Print "" Print "Press any key to close the example" WaitKey End