The Conroy & Conroy Subroutine Library (2021.3 edition)

Trim
What: string function
File:
Layer: 1
Format: result = Trim( str )
Platforms: C++, C#, Javascript, Pascal, Python

This function returns a value of the passed string with all leading and trailing spaces removed. In Pascal, this is only defined if the version of Pascal being used does not provide the function.

Note: This is provided for cross-platform compatibility only. Use the Edit function to perform this operation.