Let's say I have following string:
string test = " False";
I can't loop the characters of the string because I need to do this for 1744 strings, then it would be a lot of work.
Do you know if there is a method from Microsoft that I can use to delete this whitespace?
Like this: string test2 = test.DeleteFirstWhitespace();
Thanks
how about using the
trim()
function:In java:
Use
trim()
to remove the whitespaces around a String: