Made code 1.6 compatible

Replaced system.lineSeparator with System.getProperty("line.separator")