fixed loop over an array of strings.