import re


def file_converter(s):
    """
    s: text file (or string text) of Cover Letter template 
    formats input with {} for .format method to work
    @return(String) formatted string 
    """
    pars = s.split(']')
    reg = re.compile(r'\[[\s\S]*')
    empty = []
    for i in pars:
        empty.append(re.sub(reg,'{}',i))
    result = ''.join(empty)
    return result