Function
| Arg | Description | Type |
|---|---|---|
| string | The string to strip | string (required) |
| prefix | The prefix to strip | string |
| suffix | The suffix to strip | string |
Strip prefix and/or suffix from a string
If neither prefix nor suffix are provided, leading and trailing whitespace is stripped.
strip(string=">> lorem ipsum <<", prefix=">>", suffix="<<") -> " lorem ipsum "
strip(string=" lorem ipsum ") -> "lorem ipsum"