$string.trimStart()
trimStart($string)
Removes all white space (spaces, tabs, line breaks, and other Unicode white space characters) at the beginning of the string string. White space inside the string is kept.
If string is null, the result is null. Other values are converted to a string first.
| Name | Type | Description | Mandatory | Default |
|---|---|---|---|---|
| string | String | String from which the white space is to be removed. | yes |
Type: String
string without leading white space, or null if string is null.
trimStart(" Hello world! ")
Output: "Hello world! "