I have written a funny looking code that if the first character of string is blank, it will replace that blank space with a "0" and it works but like I said it is funny looking. Is there a nicer way of writing the same thing?
char ch = value[0];
if (ch == ' ')
{
value = value.Trim();
value = "0" + value;
}
return value;