use %n in String.format for platform independent linefeeds