Method: Trim( … )

  • Updated

 

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" 

Was this article helpful?

0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.