Swat/SwatString.php
public static function removePunctuation($string)
    {
        $string = self::removeTrailingPunctuation($string);
        $string = self::removeLeadingPunctuation($string);
        return $string;
    }
public static function removePunctuation($string)
    {
        $string = self::removeTrailingPunctuation($string);
        $string = self::removeLeadingPunctuation($string);
        return $string;
    }
public static function removePunctuation ( $ string ) { $ string = self :: removeTrailingPunctuation ( $ string ) ; $ string = self :: removeLeadingPunctuation ( $ string ) ; return $ string ; }
Removes both leading and trailing punctuation from a string

@param string $string the string to format remove punctuation from.

@return string the string with leading and trailing punctuation removed.
Removes both leading and trailing punctuation from a string