use capture.output to avoid double printing
Merge pull request #175 from swirldev/capture

Avoid double printing in safeEval()