Add replaceWithHash option