sS appendWithNewLine(S a, S b) { if (empty(b)) ret a; if (empty(a)) ret b; ret addSuffix(a, "\n") + b; }