change the split pattern from /\r?\n/ by /\r|\n/