removed a check from a loop; be more consistant with check for empty string