What logic did you use to sort out the classroom name, class number and the days?
Since some of the classes don’t have days of week, faculty, etc, look for something the test case, no matter what, will always contain. If it will always contain a room number, you can separate it like that.