/**
  * Truncate string
  *
  * @param string $str
  * @param integer $length
  * @param string $trailing
  * @return string
  */
 function truncate($str, $length = 10, $trailing = '...')
 {
     return owa_lib::truncate($str, $length, $trailing);
 }