get model from string