Skip to main content
MedCalc
Mail a PDF copy of this page to:
(Your email address will not be added to a mailing list)
working
Show menu Show menu

TRIM function

Description

TRIM(str) returns a string with all all spaces removed from from str except for single spaces between words. The function removes any leading or trailing spaces and strips extra spaces between words.

Examples

TRIM(" John    Doe ") returns "John Doe"

TRIM("     ") returns an empty string (length=0)

Calculator

TRIM(  

Related functions