trimBlanks
trimBlanks(): StringUtf8;
The trimBlanks method of the StringUtf8 primitive type returns a copy of the receiving string with blanks (spaces) trimmed from both ends of the receiver.
The following example shows the use of the trimBlanks method.
vars str8 : StringUtf8; begin str8 := ' some text '; write str8.trimBlanks; // Outputs 'some text' end;