trim

The trim method removes whitespace from both sides of a string

 

Syntax

System.String trim();

 

Return Value

Returns the modified string object.

 

Remarks

Member of string.

 

Example