Compare every consecutive character with the odd value
if ( checkOdd ( num_str [ x ] ) && checkOdd ( num_str [ x + 1 ] ) ) { result_str . Insert ( x + 1 , " - " ) ; num_str = result_str . ToString ( ) ; x ++ ; } }