Click or drag to resize
StringTrim Method
Removes all leading and trailing white-space characters from the current String object.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public string Trim()

Return Value

Type: String
The string that remains after all white-space characters are removed from the start and end of the current string.
See Also