remove trailing dot