FAQ
 
 
Cover  \ Exhibition  \ Learning  \ Reference  \ Download  \ Discourse   
      Language \ Environment \ Libraries \ Comparison
 
   
   
Abridged (A-Z) \ Complete (A-Z)  
   
  Reference for Processing (BETA) version 91+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.  
Name  

trim()

   
Examples  
String s = "  Somerville MA "; 
println(s);  // Prints "  Somerville MA " 
String s2 = trim(s); 
println(s2); // Prints "Somerville MA" 

Description   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.
   
Syntax  
trim(str)
   
Parameters  
str   any String

   
Returns   String
   
Usage   Web & Application
   
 
 






   
 
Updated: Fri Jul 15 16:36:16 PDT 2005
 
 








Creative Commons License
 
  Processing is an open project initiated by Ben Fry and Casey Reas  
  © Info