Turn name to id