import hashlib


def md5_string(string):
    """ 
    Calculate md5 hash of the given string 

    Parameters
    ----------
    string: str
        String of which md5 should be calculated.
    
    Returns
    --------
    hash_md5: str
        MD5 hash of the given string. 
    """
    return hashlib.md5(string.encode("utf-8")).hexdigest()