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