Skip to content

strip

string  strip(string value)

string  strip(string value, string whitespace)

Returns a string with the leading and trailing whitespace removed. If whitespace is provided, it is a string of characters that will be stripped.

This is also equivalent of doing both rstrip and lstrip on a string.