Fixed correct parsing of line break in string and added test case