Dollar trades in narrow range ahead of inflation data