Lua
C++
Edit

Trim

This method removes whitespace characters from the beginning and end of the string and returns the result.

Syntax

Returns

Returns the string with whitespace characters removed from the beginning and end.

Example

local s = "    Hello!  "
Print('"' .. Trim(s) .. '"')
Copyright © 2024 Ultra Software.
All rights reserved.