Docs Menu
API Developer Guide / middleware / pub / string / trim

Service: trim

This service is responsible for removing all leading and trailing blank spaces (whitespace characters) from a given string.

Input Parameter:

Name Type Description
trim: Document A document that contains the text to be trimmed.

Output Parameter:

Name Type Description
trim: Document The updated document where the text has been trimmed of leading and trailing blank spaces.