Toyota manufactured and sold a record number of cars in July, stretching the carmaker’s streak to a seventh consecutive month, on strong demand in the U.S. and China despite global trade uncertainties.

Toyota’s worldwide sales — which include subsidiaries Daihatsu and Hino — rose 4% from a year earlier to 963,796 units, the company said Thursday. While domestic sales dropped 2%, there was a 6% jump in markets outside of Japan.

Toyota and Lexus brand sales in North America were particularly strong, with demand for trucks, SUVs and gas-electric hybrid models leading to a 20% jump. Sales in China rose 5.7%.