I suggest off the top of my head one of two solutions: a.) ignore spaces and treat them as if they are not there, or b.) check entered telephone numbers for correctness before allowing them to be used, then give guidance as needed.
I suggest off the top of my head one of two solutions: a.) ignore spaces and treat them as if they are not there, or b.) check entered telephone numbers for correctness before allowing them to be used, then give guidance as needed.