Dont print None on last line