Bug fix

extra nulls in output due to new line