Created and tested a string from the input stream