strTrim

Removes leading and trailing whitespace from a string. Takes str (string to trim). Returns a new string with all leading and trailing whitespace removed.

String

Parameters & Returns

Parameters

str String

Returns

String

Quick Summary

Removes leading and trailing whitespace from a string. Takes str (string to trim). Returns a new string with all leading and trailing whitespace removed.

Technical Exegesis...

Returns a new string with all leading and trailing whitespace removed. Whitespace includes spaces, tabs, carriage returns, and newlines.

Returns an empty string if the input contains only whitespace. Internal whitespace within the string is preserved. Useful for cleaning user input or parsing text data.

Example

Example.bam
; No example implemented yet