remove the trailing dot '.'