Switch from string to int