remove trailing period