How to handle certain output from eval_string

Code.eval_string("IO.puts('a')") will print the a. When you do IO.puts(result), that is printing the :ok.