{{tag>Function Function_List Text Version:V5}} ====== TRIM ====== ===== Description ===== Removes leading and trailing spaces at the start and end of the string ===== Syntax ===== ''TRIM (text)'' ===== Parameters ===== A string or an expression producing a string ===== Returns ===== **Text**: the text with leading and trailing spaces removed. ===== Example ===== IF TRIM ('Some string ') = 'Some string' THEN ... ===== Related ===== [[ref:a_f:f:af:pad_left|PAD_LEFT]], [[ref:a_f:f:af:pad_right|PAD_RIGHT]], [[ref:a_f:f:af:length|LENGTH]]