Reducer for text output