I came here trying to find the answer to the same question that you asked. Since then you have asked this question. Let me answer it one way or another for those who can watch this channel in the future.
Everything else is fine in your code, except that "space" is a reserved word in Mips. I think it is used to create arrays. So, if you replace the place with another word, I used the "new line". It works as intended.
.data newline: .asciiz "\n" .text li $v0, 4
nabin source share