pass the disableStr to the callback function