improve id extension from name extraction