Just like the title says.
I\'ve tried doing str.Replace(\"\",\"0\"); but it gave me error because oldValue has zero length.
str.Replace(\"\",\"0\");
oldValue
Is it possi
If you want to check if the value is empty and then set the value to zero, otherwise use the default value you can use an inline if like so:
return string.IsNullOrWhiteSpace(retString ) ? "0" : retString;