add function getIDFromString