strings&streams example not working