create an array of the same size to hold the new string (since we know its length
will be <= the original (use strlen). Or you could just copy the characters in
order back into the original...