what is Trim() in asp.net code example Example: c# trim string string hello = " hello world "; hello.Trim();