add dot to the end of the last sentence