code: function(str, len, replace){
  		len||(len = 50); 
  		replace||(replace = '...');
  		return (str.length > len) ? str.trim().substr(0,len).trim()+replace : str;
  	}
docs: Truncate a string. Usage: {{=helpers.truncate(str)}}
  @param {string} str - The input string
  @param {number} [len=50] - The optional maximum string length (default = 50 characters)
  @param {string} [replace=...] - Optional replace string (defaults to "...")
  @returns {string}