def replace(line, a, b):
    """ 
    if line starts with string a, then
    replace string a with string b in line
    """
    mline = line
    if line.startswith(a):
        mline = line.replace(a,b)
    return(mline)