Pascal Scripting: Trim

Prototype

function Trim(const S: AnyString): AnyString;

Description

Trims leading and trailing spaces and control characters from the given string S.