Trim
The trim method removes leading and trailing whitespaces from a string. Itcan also be used to clean up multi-line strings in Lua scripts.
Here's an example of how you might use it in a Lua script:
local text = [[
This is a multi-line string
that has inconsistent indentation.
]]
local trimmed_text = trim(text)
This would result in the following text:
This is a multi-line string
that has inconsistent indentation.