clean up console output when logging multiple values with \n and/or \r