replace string by int