Method: Trim( … )

Returns a new string in which all whitespace is trimmed out of the content passed in.

Syntax

string Trim( object content ) string Trim( string content )

Example

var myValue = "Fuel Capacity "; Name = Trim( myValue ); // Name is now "FuelCapacity"