Mr. Bush 's trip began with a surprise visit to Afghanistan Wednesday , where he expressed the United States ' commitment to rebuilding the country .