replace “System.lineSeparator()” as System.getProperty("line.separator")