Remove blanks from array of lines