Revert "convert stdout's input to string,"

This reverts commit 82a63677254ac5001649088bd1025f913fc26bea.