strings&streams example working have no idea why