Raul Junc

Raul Junc

  • NA
  • 15
  • 8.9k

Erase stuff from string

Mar 21 2011 7:01 PM
Hello
I have this code:

string s;
s = "12345       ";

How can i delete that space from my string?
I want to obtain true from this if:

if(s == "12345")
        MessageBox.Show("It's correct!");
else
        MessageBox.Show("Wrong");


Answers (7)