def pstrip(s, prefix):
    """Prefix strip

    >>> pstrip('foo_oof', 'foo_')
    'oof'
    >>> pstrip('baroof', 'foo_')
    'baroof'
    """
    i = len(prefix)
    if s[:i] == prefix:
        return s[i:]
    return s