Removes leading and trailing whitespace or specified characters from a string.
The string from which characters will be trimmed.
Optional
chars: string | string[]The character(s) to remove from the string. Can be a single character or an array of characters.
Alias