Replacing use of '\n' character with the more standard System.getProperty("line.separator")