Could you also replace the `"\n"` with the [`System.lineSeparator()`](http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#lineSeparator%28%29). Then you wouldn't have to do the string replacement below.