Use `string-to-number' instead of `string-to-int'.