split method used to retrieve csv file content