Test string can be converted to double, c#