auto insert End token at every end of line