Variable Array Javascript Length Of A String