Hello__World_____//Here "_" means a blank
Hello__World
Hello
World
string s = "Hello World "; s = s.Trim();
string s = "Hello World "; s = s.TrimEnd();
Agent_Spock wrote:.Trim() removes gap between hello and world
String.Trim Method[^]:Removes all leading and trailing white-space characters from the current String object
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)