Remove "special" characters from beginning and the end of the `inp`. For
    example ``,a-sd,-/`` -> ``a-sd``.

    Args:
        inp (str): Input string.
        hairs (str): List of characters which should be removed. See
                     :attr:`HAIRS` for details.

    Returns:
        str: Cleaned string.

def remove_hairs(inp, hairs=HAIRS):
    """
    Remove "special" characters from beginning and the end of the `inp`. For
    example ``,a-sd,-/`` -> ``a-sd``.

    Args:
        inp (str): Input string.
        hairs (str): List of characters which should be removed. See
                     :attr:`HAIRS` for details.

    Returns:
        str: Cleaned string.
    """
    while inp and inp[-1] in hairs:
        inp = inp[:-1]

    while inp and inp[0] in hairs:
        inp = inp[1:]

    return inp