def __prepare_line(string, dir_source, replace_string):
    """
        Prepare the line before it is being written into the content file
    """
    if not replace_string == None:
        string = string.replace(dir_source, replace_string)

    return string