If the first digit is 1 , then make it 0 and add 9 at the end of the String .
if ( a [ 0 ] == ' ' && s === s1 ) { var l = s . length ; a = a . replace ( a [ 0 ] , ' ' ) ; for ( var i = 0 ; i < l ; i ++ ) a += ' ' ; } else { for ( var i = a . length - 1 ; i >= 0 ; i -- ) {