get rid of ret in string to int conversion