clean up line terminator