The Dow Jones Industrial Average and S&P 500 hit record highs on Wednesday as core inflation indicated inflation will remain moderate and the economy will sustain its strength.