Remove excess whitespace characters from a string
String_Type strtrim (String_Type s, String_Type white)
The strcompress
function compresses the string s
by
removing all repeated characters specified by by the characters of
white
from the interior of s
. In addition, it also
removes all leading and trailing characters from s
that are
part of white
.
The expression
strcompress (",;apple,,cherry;,banana", ",;");
returns the string @"apple,cherry;banana"@.
strtrim