Take a look at #replaceNewLine on how you should format this method.