attempt to print to string instead of printf, for testing