static function Trim($string, $chars = null)
    {
        self::InitEncoding();
        if (!$chars)
            return trim($string);

        return trim($string, $chars);
    }
static function Trim($string, $chars = null)
    {
        self::InitEncoding();
        if (!$chars)
            return trim($string);

        return trim($string, $chars);
    }
static function Trim ( $ string , $ chars = null ) { self :: InitEncoding ( ) ; if ( ! $ chars ) return trim ( $ string ) ; return trim ( $ string , $ chars ) ; }
Trims leading and trailing chars.
@param string $string
@param string $chars
@return string The trimmed string
Trims leading and trailing chars .