def shares(shares):
    """Returns integer with comma notation"""
    try:
        shares = int(shares)
    except (ValueError, TypeError, UnicodeEncodeError):
        return ''
    return '{0:,}'.format(shares)