Loop Through String Array Javascript Length Of A String