public static void Main()
Console.WriteLine("Please input a text with a *");
string text =Console.ReadLine();
Console.WriteLine("Hello World");
public static void newtext (string text){
while (isunicode == false&&h< text.Length){
isunicode =Char.IsLetterOrDigit(text,h );
if( text.Substring(0,h).Equals("*") ){
if ( text.Contains("*")&& isunicode == true){
string texth =Console.ReadLine();
Console.WriteLine(textg );
while(i<= text.Length||failmax== true){
if (text.Substring(0,i).Contains("*")&&failmax== true){
text=text.Substring(0,i).Replace("*", texth);
if (maxh==true&&i<= text.Length){
failmax= Char.IsLetterOrDigit(text,i );
Console.WriteLine(failmax);
Console.WriteLine(textg );
Console.WriteLine("Error");
if (failmax== false || isunicode ==false){
Console.WriteLine("Invalid characters");