update string to integer