I can't see your screen from here. What input did you give, and what output did you get? What output did you expect?
Have you tried adding any debug code to make sure what you think is happening really is happening? So for example after the first
printf("Input a string: ");
does string[0] contain what you expect? You might try adding something like:
printf("Stored '%s' in string[s=%d]\n",string[s],s);
to verify that the correct string is stored in the correct place.