Stock market today: Indexes end mixed as investors brace for August inflation report