Dollar rises on hawkish comments; stocks end up