String.trim_start
String.trim_start
Function
Remove whitespace characters from the beginning of a string.
Syntax
string.trim_start()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | New string with leading whitespace removed. |
Code Example
result = ' BT '.trim_start() // Output: BT print result
Notes
- The original string is not modified.