Moved the assignment of fileContents[i] so we don't update lines that don't need it