Typed up the String function and tested for errors, finding none.