Trims the white space from both ends of the string.
[Visual Basic] Overloads Public Function Trim() As String [C#] public string Trim(); [C++] public: String* Trim(); [JScript] public function Trim() : String;
The substring of characters remaining after the removal of any white space from both ends of this string.
The Trim method removes the whitespace from the beginning and ending of a specified string. White space is defined by WhitespaceChars.
String Class | String Members | System Namespace | String.Trim Overload List