checking names with hyphens should have more general purpose name