makes array split on newlines and gives those arrays