public static function remove_trailing($string, $trailing_string)
    {
        if (StringTool :: end_with($string, $trailing_string))
        {
            return substr($string, 0, strlen($string) - strlen($trailing_string));
        }
        else
        {
            return $string;
        }
    }