hyTags
HomeHome Getting StartedGetting Started DocumentationDocumentation

string-trim

Removes specified characters from the beginning and/or end of a string.
Parameter
Type
Description
self
string
String to trim
characters
string
Characters to remove (defaults to whitespace if nil)
side
string
Which side to trim: "left", "right", or both sides if nil
return
string
String with specified characters removed