.. highlightlang:: us .. _strtrim: strtrim ======= .. index:: strtrim .. us.tag strtrim ENGLISH STR :ref:`strtrim` removes all blank and tab characters from a string matrix. .. function:: smStringTrim = strtrim(smString) smStringTrim = strtrim(smString, nType) .. us.return **Return Value** *smStringTrim* is a string matrix without any blank or tab characters at the start and end. .. us.params **Parameters** .. uparam:: smString *smString* is a string matrix. .. uparam:: nType is one of the following values: .. list-table:: :header-rows: 1 * - Value - Meaning * - 0 - Remove all blank and tab characters (Default), * - 1 - Remove all blank and tab characters at the beginning * - 2 - Remove all blank and tab characters at the end * - 3 - Remove all blank and tab characters at the end and beginning .. seealso:: :ref:`overview-strings`, :ref:`strtok`, :ref:`strfindreplace` :sub:`id-1819045`