Loop through array and match length of String element