Added line separator argument to constructor