Made a function to find course nums rather than using regex directly