Creating and Testing a String from the Input Stream