Find longest string / the easiest way

I am calling this function:

function getHighestWidth():void{
    
    for (var i:int = 0; i < myXML.video_title.length(); i++) {
        trace(String(myXML.video_title*).length);
    }
    
}

output gives like:
22
43
54
24
52
64
67

I could push these numbers into array and then sort that array numeric to get the highest number, but is there an even shorter way to return the highest number from these strings?