Your code should probably look like "char str" or "char x"
Inserting a null to "end" the string...
First, use a loop to search for a space. x[n] == ' ';
char x = DougDbug;
x = '/0'; // Replace the second 'D' with '\0' So that "Doug" will print-out.
First, you have to shift-right all the characters right of the hyphen.
So, again in a loop (starting at the end and working backwards).
ssn = ssn; // Move the character in position 3, to position 4
ssn = '-' ; // Overwrite position 3 (4th character) with a hyphen.
BTW - What you are working with is a "character array" or "c-style string". An example of an "array of strings" would be a an array of sentances, which the computer would see as a two-dimensional array. Or, "an array of character-arrays".