Dollar General bought 41 former Walmart Express stores and plans to relocate or open new stores in the locations.