return name and other fields with whitespace collapsed properly (closes #2)