Typescript Compare Array Of Strings Length