Typescript Get Longest String From Array To Number