Get ID from typestr
IDstr (str) – type string.
ValueError – When type string is not existing.
key – typeID.
int