fix get stdout string.