extracting length of a string in a lua table

Hi

Suppose you have this table:

local questions = {
{ question=“Who wrote Hamlet?”, answer=“William Shakespeare” },
{ question=“Who wrote Jane Eyre?”, answer=“Jane Austen” },
}

Is there a way to find the length of the string in questions[1].answer ?

thanks in advance,

David

print( string.len(questions[1].answer) )

Thanks!

print( string.len(questions[1].answer) )

Thanks!