Validating list of strings