strTrimLeading function


strTrimLeading String

strTrimLeading (String str)

Removes tabs and spaces at the beginning of the input string. Tabs and spaces after the first non-whitespace character are not affected.

Parameters:

str - string to be processed

Returns:

A string with the whitespace at the beginning of the string removed.

Example

str = ' This is an example string '
str2 = strTrimLeading(str)
// str2 is 'This is an example string '

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*