```python
def check(string) :
    """
    Checks if the given string is a binary string.

    A binary string contains only the characters '0' and '1'.

    Args:
        string: The input string to check.

    Returns:
        True if the string is a binary string, False otherwise.
    """
    for char in string:
        if char not in '01':
            return False
    return True

```