Created attachment 31716 [details] Suggested patch for (int i = 0; i < length; i++) { String string = stringRep[i]; toAppendTo.append(string).append("\n"); } For full compliance and as a best practice, the platform-specific line separator should be used.