convert line obj to string before processing