Checking if the first character of a text is a number can be done in single line, using Char.IsNumber() function as follows:
if ( Char.IsNumber( stringInput, 0) ) {
// String input begins with a number}
More information: https://learn.microsoft.com/en-us/dotnet/api/system.char.isnumber