'string-to-int' is obsoleted function

It is obsoleted since Emacs 22.1(too old). We should not use it and use `string-to-number`
instead of it.