remove periods in the end of every line