def METHOD_NAME(string, width, side='left'):
    """Return `string` aligned to `side`, considering wide characters
    The returned string is filled up with spaces to take `width` single-spaced
    characters and cropped with `strcrop` if necessary.
    """
    fill = width - strwidth(string)
    if fill < 0:
        string = strcrop(string, width)
        fill = width - strwidth(string)
    if fill > 0:
        if side == 'left':
            string = string + ' ' * fill
        elif side == 'right':
            string = ' ' * fill + string
        else:
            raise TypeError("side argument must be 'left' or 'right', not {!r}".format(side))
    return string