Classes/Parser/AbstractParser.php
public function removePrefixFromString($prefix, $string)
    {
        if (GeneralUtility::isFirstPartOfStr($string, $prefix)) {
            return substr($string, strlen($prefix));
        } else {
            return $string;
        }
    }
public function removePrefixFromString($prefix, $string)
    {
        if (GeneralUtility::isFirstPartOfStr($string, $prefix)) {
            return substr($string, strlen($prefix));
        } else {
            return $string;
        }
    }
public function removePrefixFromString ( $ prefix , $ string ) { if ( GeneralUtility :: isFirstPartOfStr ( $ string , $ prefix ) ) { return substr ( $ string , strlen ( $ prefix ) ) ; } else { return $ string ; } }
removes a prefix from a string.

@param $prefix
@param $string

@return string

@todo add typehinting
removes a prefix from a string .