remove ending period