@Marcol, I could be wrong of course but I don't think you need more than one SUBSTITUTE as long as you replace the blanks with a non-numeric character.
I did modify my suggestion along these lines earlier

However, the point re: # exceeding 9 digits in length preceding the nine digit # is valid for all suggestions made thus far.