Implementing split for both new line and comma