if both reminders are 0 and digit itself is not 0 , then print result and return
if ( prefixReminder [ i ] == 0 && suffixReminder [ i ] == 0 && num [ i ] != ' ' ) { document . write ( num . substring ( 0 , i ) + " " + num . substring ( i ) ) ; return ; } }