trim
filter is used to remove whitespace (or other specified characters) from the beginning and end of a string. It is useful for cleaning input data or ensuring that strings are processed without unwanted spaces.
trim
filter to remove whitespace from a string: