public static function removePrefix($string, $prefix)
    {
        if (self::startsWith($string, $prefix)) {
            return substr($string, mb_strlen($prefix));
        }
        return $string;
    }
public static function removePrefix($string, $prefix)
    {
        if (self::startsWith($string, $prefix)) {
            return substr($string, mb_strlen($prefix));
        }
        return $string;
    }
public static function removePrefix ( $ string , $ prefix ) { if ( self :: startsWith ( $ string , $ prefix ) ) { return substr ( $ string , mb_strlen ( $ prefix ) ) ; } return $ string ; }
Returns a new string without the given prefix.

Example:
<code>
$string = 'prefixRest';
$withoutPrefix = Strings::removePrefix($string, 'prefix');
</code>
Result:
<code>
Rest
</code>

@param string $string
@param string $prefix
@return string
Returns a new string without the given prefix .