Alternate,
=TEXT(A1,"0000-0000-0000")
Or just fomat A1 with the custom format: "0000-0000-0000" (no quotes)