I have a phone number stored in a variable and I want to format this number to include the country code. Right now I have this:

```
var PhoneNumber = 07xxxxxxxx;
NewNumber = PhoneNumber.replace("0", "+46");

```

It works great, however, currently it replaces any 0 in the number.
It must only replace the 0 on the beginning of the number. For example, if the number in the variable looks like this 750xxxxxxx then it must not replace the zero, but if the 0 is at the beginning of the number (like so 07xxxxxxxx) then it must replace it.