Resolved issue with uncleared string builder in csv creation