I think this should be simple, but cannot figure it out. I want to: remove a character from a string and then convert that (long) string to numeric format, not in exp form.

Here is an example.

Code:
clear
input str30 y1
y201213119349300311
end

replace y1 = subinstr(y1,"y","",.)

destring y1, g(y1_real)
format y1_real %30.0g
The destring command converts the numeric variable to exp form and changes the information. I want it to look identical to the string but be numeric.

Thanks in advance.