trim
trims any whitespace from the beginning and end of a string
(string subject) -> string
Returns the given subject string with any leading and trailing whitespace characters removed.
Returns nil
if subject is nil
.
Parameters
Name | Type | Description |
---|---|---|
subject |
string | The string to trim |