Iran president hopeful of nuclear deal