Eliminate whitespace from both ends of a string.
String |
The trim() method eradicates whitespace from both the beginning and end of a string.
Note: This method leaves the original string unchanged.
public |
None.
Returns |
A string value that is an exact duplicate of the original string but devoid of any leading and trailing whitespace. |