trim() Data String Functions Web & Application String s = " Somerville MA "; println(s); // Prints " Somerville MA " String s2 = trim(s); println(s2); // Prints "Somerville MA" Removes whitespace characters from the beginning and end of a String. In addition to standard whitespace characters such as space, carriage return, and tab, this function also removes the Unicode "nbsp" character. trim(str) any String String 1.0 Function Core Extended