Isolate loop to read_name() routine