def check_color(color):
    """Check color and return cleansed value."""
    color = str(color)
    color_len = len(color)
    if color_len == 0:
        raise ValueError('Color cannot be empty!')
    elif color_len != 1:
        color = color[0]
        raise ValueError('Color has to be a single character!')
    return color
