Added more newline tests
Added tests and implementation for different delimiters