Made helper function to convert string data from text file into a 2D list