Dollar General has felt pressure as Walmart, Amazon and others offer more digital ways to shop along with low prices.