pass stringio as argument