Make outputting more modular by creating String, then printing