// trim white-space and end line characters from start and end of string
string fullTrim = Macros.TextProcessing.Trim(" string for trim operation\r\n ", "Full");
// trim white-space from start of string
string beginTrim = Macros.TextProcessing.Trim(" string for trim operation\r\n ", "Begin");
// trim end line characters from end of string
string endTrim = Macros.TextProcessing.Trim(" string for trim operation\r\n ", "End");
// trim white-space and end line characters from start and end of string
$fullTrim = Macros::TextProcessing::Trim(" string for trim operation\r\n ", "Full");
// trim white-space from start of string
$beginTrim = Macros::TextProcessing::Trim(" string for trim operation\r\n ", "Begin");
// trim end line characters from end of string
$endTrim = Macros::TextProcessing::Trim(" string for trim operation\r\n ", "End");