The name must include the corresponding namespace. It can be prepended to the class name. For example:
string input = "Class3";
string name = "MyNamespace." + input;
object obj = Activator.CreateInstance( assemblyName: null, typeName: name ).Unwrap();
or
string input = "Class3";
string name = "MyNamespace." + input;
Type type = Type.GetType( name );
object obj = Activator.CreateInstance( type );
See also other forms of Activator.CreateInstance and Type.GetType.