Convert flow dict form string to int