Added unit test for having newline as delimiter
Added functionality for using newline as delimiter