def replacestring(lines, tag, value):
    """Replace string in list of strings.

    Args:
        lines: List of strings.
        tag: String to replace.
        value: String with which to replace 'tag'.

    """
    output = []
    for line in lines:
        line = line.replace(tag, value)
        output.append(line)
    return output