remove . at end of line