How to split a variable value with respect to each each line?

An extra empty line is generated between two lines.

Below is the array created. Why is this getting created like this.

[1]:
[2]: KK Street
[3]:
[4]: Karnataka

1 Like