-- ScriptsCodes | Roblox Studio Luau utility -- Run: Open your own place in Roblox Studio, choose View > Command Bar, paste this file, and press Enter. -- Output: Results appear in the Studio Output window. Edit the sample values before running. -- Lua String Formatter: normalize whitespace in a label local function cleanLabel(value) local text = tostring(value or "") text = text:gsub("%s+", " ") return text:match("^%s*(.-)%s*$") end for _, value in ipairs({ " Garden Notes ", "Session 04", " " }) do print("[" .. cleanLabel(value) .. "]") end