def _check_library(string):
    """Returns a unicode number representing an alphabetical symbol
    
    Parameters
    ----------
    string : string
        String contains alphabetical symbol which should be transformed to unicode number
    
    Returns
    -------
    integer
        returns unicode number if transformation is successfull or '1' if TypeError occurs.
    """
    try:
        return ord(string)
    except TypeError:
        return 1
