def ul(string,line_type='='):
    """
    Returns string with underline
    
    Example:
    >>> print(ul('HEADER'))
    HEADER
    ======
    
    Hamid M. May 2012   
    """

    uline = len(string)*line_type    
    return string+'\n'+uline