update string to double