Function editInputPipeForNumber