Blind, Braille and Embossing Technologies

This site uses cookies to personalize content and ads, provide social media features and analyze links. By closing this banner or continuing to browse, you consent to their use.
Read the DiGrande.it Cookie Policy

StringTrim- Returns the string without the initial and final spaces

Function that returns the string passed as parameter removing any spaces present at the beginning and at the end.

- StringTrim(S): string


- (string) S: A string from which initial and final spaces are removed.


Use the StringTrim function to remove the start and end spaces from a string.


// Creates a string variable with some spaces at the beginning and at the end

S = " Biblos "

// Removes all unnecessary spaces at the beginning and end

T = StringTrim(S)

// The variable T contains the string "Biblos, without the unnecessary spaces