Completed the String function.  I am hoping this is correct for the assignment.