President Donald Trump is expressing optimism that the war could be close to over as concerns grow about its economic impact.