def create_grid_string(dots, xsize, ysize):
    """
    Creates a grid of size (xx, yy) 
    with the given positions of dots.
    """
    grid = ""
    for y in range(ysize):
        for x in range(xsize):
            grid += "." if (x, y) in dots else "#"
        grid += "\n"
    return grid