How can I output this when I'm using Replace and ToUpper in visual studio c#
FirstName
Here's my code:
private void button1_Click(object sender, EventArgs e)
{
string input;
input = comboBox1.Text;
input = input.Replace("_", "");
label1.Text = input.First().ToString().ToUpper()
+ String.Join("", input.Skip(1));
}
The output is always this:
Firstname