Consistent Phone Number Format Submission?

I have a “phone number” field on a custom form. It’s currently a text field, so as you can imagine, we get submissions in every format imaginable.

Is there a way to program the phone field so it always comes in the same format no matter how someone types it in? I would prefer the following format, 555-555-5555. Thanks for the help.