convert string extension name to integer extension number