trimLeft

trimLeft(): String;

The trimLeft method of the String primitive type returns a copy of the receiving string with leading blanks (spaces) removed.

The following example shows the use of the trimLeft method.

vars
    stringValue : String;
begin
    stringValue := '     some text     '.trimLeft;
    write stringValue;            // Outputs 'some text     '
end;