Format phone number to add country code

how do you prevent other 0’s being formatted within the number ?