Dollar rises as confidence in US economy grows