trim

Trim the string from the left and right by the given characters

Use the native trim method if you want to trim whitespace.

Example