sS appendWithNewLine(S a, S b) { if (empty(b)) ret a; if (empty(a)) ret b; ret appendNewLineIfNempty(a) + b; }