Family Dollar's shares gained more than 9 percent in after-hours trading when activist investor Carl Icahn disclosed a 9.4 percent position in the company. "Hope to continue our streak of value enhancement," Icahn said, in a tweet.

Carl Icahn

In the official 13D filing with the SEC, Icahn said he acquired the shares because he believes they are undervalued, and that he wants to talk with senior management and board of directors about "the pursuit of operating initiatives or the exploration of strategic alternatives."