replace() with hit information