US discount retailer Dollar General said it delivered a "strong" third-quarter after recording an increase in earnings but apparel sales suffered.