How can I get the number of letters in a string?

Or you can do the same thing in a different syntax,

local str = "my example"
print(str:len())

Which I prefer. BTW

should be str