Add carriage return to a string
c#, linq
Solution
string s2 = s1.Replace(",", ",\n");
Problem
I have a long string. ``` string s1 = "'99024','99050','99070','99143','99173','99191','99201','99202','99203','99204','99211','99212','99213','99214','99215','99217','99218','99219','99221','99222','99231','99232','99238','99239','99356','99357','99371','99374','99381','99382','99383','99384','99385','99386','99391','99392'"; ``` I want ``` string s2 = "'99024', '99050', '99070', '99143', '99173', '99191', '99201', '99202',...."; ``` In other words. Maybe it likes: ``` string s2 = "'99024',"+'\n'+"'99050',"+'\n'+"'99070',"+'\n'+"'99143',"+'\n'+.....; ``` I need a concise code. Maybe LINQ. Thanks.