Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.

trim

Function: trim
  trim characters off the start and end of a string

Examples:

  trim('    SOMETHING    ', ' ')
  -- Result: "SOMETHING"

  trim(',a,b,c,d,', ',')
  -- Result: "a,b,c,d"

  trim('    SOMETHING    ', 'nope')
  -- Result: "    SOMETHING    "




Signatures
text, text -> text