Re-direct the STDOUT to a string