add new line for each row
removing extra spaces