We have a solution.
We have written a script and user no need to worry about hyphens. User need to enter the number only and hyphens will be places at right place automatically. This script also check for the maximum length of number to be allowed.
Not only SSN but we can modefy this script to work for any kind of FIX type of value supposed to be entered in field.