def replacer(svgFile, toReplace, newData):
    """
    Searches through SVG file until it finds a toReplace, once found, replaces it with newData
    """
    for count in range(0,len(svgFile)):
        found = svgFile[count].find(toReplace) #Check if the current line in the SVG file has the required string
        if not (found == -1):
            location = (svgFile[count]).find(toReplace) #We know exact location on the line that Name and Twitter are
            partone = (str(svgFile[count])[:location]) #Grab part of line before the searched for string
            parttwo = (str(svgFile[count])[(location+len(toReplace)):]) #Grab part of line after the searched for string
            svgFile[count] = partone + newData + parttwo
            break
    return svgFile