Program accepts a string and returns a string

You will notice extra code because I went back having forgotten to run this test on the code.