Use isLineTerminator in endsWithLineTerminator

Close #134