After seeing modest strength throughout much of the session, stocks gave back ground into the close of trading on Wednesday. While the Nasdaq managed to hold on to a moderate gain, the Dow and the S&P 500 closed nearly flat.