remove the space before the dot at the end of the line