Correct the splitting to get course code in addCourse