From Clomosy Docs
function Trim(const Text String):String;
The Trim function removes blank and control characters (such as line feed) from the start and end of a string.
Use TrimLeft or TrimRight to limit the operation to just one end of the string.
Example:
const textValue = ' Text ';
begin
ShowMessage('/'+TrimLeft(textValue)+'/'); ShowMessage('/'+TrimRight(textValue)+'/'); ShowMessage('/'+Trim(textValue)+'/');
end;
Output:


