Walmart said artificial sweeteners and preservatives would be removed from its store brands sold online and at more than 4,500 stores.