It is required to format the lines containing telephone numbers so that they can be compared later. For example:
8 (495) 430-23-97
+ 7-4-9-5-43-023-97
4-3-0-2-3-9-7
are the same phone numbers. How to bring them to the form 8 <code> <number>, so that later they can be compared and say whether this number matches the entered one or not? PS +7 = 8. If the code is not specified, then it is equal to 495 by default.