First character uppercase Lua
snippet in lua

First character uppercase Lua

user9194

function firstToUpper(str)
    return (str:gsub("^%l", string.upper))
end