Refactoring OutputRecordStr