trim

The trim function removes space from either side of a string:

trim "   hello    "

The above produces hello

Back to top