string.Trim
From GMod Wiki
Function | |
Syntax |
string.Trim( String string, [ String char ] ) Where is this used? |
Description: | |
Removes leading and ending white spaces from a string. | |
Returns: | String |
Part of Library: | String |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=String.Trim]String.Trim [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Example
Additional Notes
- If char is specified, the string gets that character trimmed off instead of a space.