String - Trim

Use the code below to remove unnecessary white space at the beginning or the end of a string.

  1. #set ($title = "James is awesome    ")  
  2. $title.trim()  
comments powered by Disqus