Making the first letter in a string uppercase.

I know how to use string.upper and string.lower but I’m confused as to how I make a certain letter of the string uppercase.
Here is my code:

for k,v in pairs(player.GetAll()) do
print(v:Name()..": "..v:SteamID())

Here’s a cool snippet:

( string.gsub( "willox", "^.", string.upper ) ) -- returns "Willox"

You can read more about Lua patterns @ or in
I’ve wrapped the string.gsub call in parenthesis because it returns multiple variables, the parenthesis will cause the expression to evaluate to only the first value.

Alternatively you can do loads of horrible code involving string.sub, string.length and loops.