I am trying to change NAICS ID variables from a string into separate individual numbers. For example, the string is originally listed as (11111-2), and I would like to change the string into a number format in separate columns as (11111 11112). Any help or suggestions would be greatly appreciated.

Code:
* Example generated by -dataex-. To install: ssc install dataex
clear
input str7 IOCode str8 NAICS1 str9 NAICS2 str8 NAICS3 str7 NAICS4
"1111A0" "11111-2"  ""         ""         ""       
"1111B0" "11113-6"  " 11119"   ""         ""       
"111200" "1112"     ""         ""         ""       
"1113A0" "11131-2"  "111331-4" " 111336*" " 111339"
"111335" "111335"   " 111336*" ""         ""       
"111400" "1114"     ""         ""         ""       
"111910" "11191"    ""         ""         ""       
"111920" "11192"    ""         ""         ""       
"1119A0" "11193"    " 111991"  ""         ""       
"1119B0" "11194"    " 111992"  " 111998"  ""       
"1121A0" "11211"    " 11213"   ""         ""       
"112120" "11212"    ""         ""         ""       
"112A00" "1122"     " 1124-5"  " 1129"    ""       
"112300" "1123"     ""         ""         ""       
"113A00" "1131-2"   ""         ""         ""       
"113300" "1133"     ""         ""         ""       
"114100" "1141"     ""         ""         ""       
"114200" "1142"     ""         ""         ""       
"115000" "115"      ""         ""         ""       
"211000" "211"      ""         ""         ""       
"212100" "2121"     ""         ""         ""       
"212210" "21221"    ""         ""         ""       
"2122A0" "21222"    " 21229"   ""         ""       
"212230" "21223"    ""         ""         ""       
"212310" "21231"    ""         ""         ""       
"212320" "21232"    ""         ""         ""       
"212390" "21239"    ""         ""         ""       
"213111" "213111"   ""         ""         ""       
"213112" "213112"   ""         ""         ""       
"21311A" "213113-5" ""         ""         ""       
"221100" "2211"     ""         ""         ""       
"221200" "2212"     ""         ""         ""       
"221300" "2213"     ""         ""         ""       
"230101" "23*"      ""         ""         ""       
"230102" "23*"      ""         ""         ""       
"230103" "23*"      ""         ""         ""       
"230201" "23*"      ""         ""         ""       
"230202" "23*"      ""         ""         ""       
"230301" "23*"      ""         ""         ""       
"230302" "23*"      ""         ""         ""       
"311111" "311111"   ""         ""         ""       
"311119" "311119"   ""         ""         ""       
"311210" "31121"    ""         ""         ""       
"311221" "311221"   ""         ""         ""       
"31122A" "311222-3" ""         ""         ""       
"311225" "311225"   ""         ""         ""       
"311230" "311230"   ""         ""         ""       
"31131A" "311311-2" ""         ""         ""       
"311313" "311313"   ""         ""         ""       
"311320" "31132"    ""         ""         ""       
"311330" "31133"    ""         ""         ""       
"311340" "31134"    ""         ""         ""       
"311410" "31141"    ""         ""         ""       
"311420" "31142"    ""         ""         ""       
"31151A" "311511-2" ""         ""         ""       
"311513" "311513"   ""         ""         ""       
"311514" "311514"   ""         ""         ""       
"311520" "311520"   ""         ""         ""       
"31161A" "311611-3" ""         ""         ""       
"311615" "311615"   ""         ""         ""       
"311700" "3117"     ""         ""         ""       
"311810" "31181"    ""         ""         ""       
"311820" "31182"    ""         ""         ""       
"311830" "31183"    ""         ""         ""       
"311910" "31191"    ""         ""         ""       
"311920" "31192"    ""         ""         ""       
"311930" "31193"    ""         ""         ""       
"311940" "31194"    ""         ""         ""       
"311990" "31199"    ""         ""         ""       
"312110" "31211"    ""         ""         ""       
"312120" "31212"    ""         ""         ""       
"312130" "31213"    ""         ""         ""       
"312140" "31214"    ""         ""         ""       
"3122A0" "3122"     ""         ""         ""       
"313100" "3131"     ""         ""         ""       
"313210" "31321"    ""         ""         ""       
"313220" "31322"    ""         ""         ""       
"313230" "31323"    ""         ""         ""       
"313240" "31324"    ""         ""         ""       
"313310" "31331"    ""         ""         ""       
"313320" "31332"    ""         ""         ""       
"314110" "31411"    ""         ""         ""       
"314120" "31412"    ""         ""         ""       
"314910" "31491"    ""         ""         ""       
"314990" "31499"    ""         ""         ""       
"315100" "31511"    " 31519"   ""         ""       
"315210" "31521"    ""         ""         ""       
"315220" "31522"    ""         ""         ""       
"315230" "31523"    ""         ""         ""       
"315290" "31529"    ""         ""         ""       
"315900" "3159"     ""         ""         ""       
"316100" "3161"     ""         ""         ""       
"316200" "3162"     ""         ""         ""       
"316900" "3169"     ""         ""         ""       
"321100" "3211"     ""         ""         ""       
"32121A" "321211-2" ""         ""         ""       
"32121B" "321213-4" ""         ""         ""       
"321219" "321219"   ""         ""         ""       
"321910" "32191"    ""         ""         ""       
"321920" "32192"    ""         ""         ""       
end