Dollar rises ahead of inflation data