Super simple function to include. Really not sure why its missing from the Corona SDK…
[lua]function string.capital( str )
local firstLetter = string.sub(string.upper(str), 1, 1);
local otherLetters = string.sub(str, 2);
return firstLetter…otherLetters;
end[/lua] [import]uid: 50514 topic_id: 19135 reply_id: 319135[/import]