Use string-to-number instead of string-to-int

`string-to-int` is deprecated and it causes the byte compile warning.