removing trailing dot