Changed options on stoi to do automatic change of base number.