The stock market gained ground on Wednesday, with major benchmarks making modest moves higher that were sufficient to keep sentiment on Wall Street positive. Investors continued to see the markets walk the tightrope between solid economic progress and potential geopolitical turmoil, and a focus on domestic issues like monetary policy and tax reform kept most market participants within their comfort zones.