extracting course id from a given url