new find digit number function