```python
def check(string) :
    s = set(string)
    b = {'0', '1'}
    if s.issubset(b):
        return True
    else:
        return False
```