Select one digit and call the same function for other blocks
ipAddress = ipAddress + givenString . substr ( index , 1 ) + ' . ' ; GetAllValidIpAddress ( result , givenString , index + 1 , count + 1 , ipAddress ) ;