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