Replace stoi usage with custom integer parsing