NAnt SDK Documentation - v0.92 |

# StringFunctions.TrimStart Method

Returns the given string trimmed of leading whitespace.

[Visual Basic]
<Function(Name:="trim-start")>
Public Shared Function TrimStart( _
ByVal s As String _
) As String
[C#]
[Function(Name="trim-start")]
public static string TrimStart(
string s
);

#### Parameters

s
  input string

#### Return Value

The string s with any leading whites pace characters removed.

#### Example

    string::trim-start('  test  ') ==> 'test  '

    string::trim-start('\t\tfoo  \r\n') ==> 'foo  \r\n'

#### See Also

StringFunctions Class | NAnt.Core.Functions Namespace