I have tried the replace but it does not seem to work. Is there another way that I can format a text area to input dashes into a phone number if the user does not put them in.