pinID to int from string