Trim whitespaces to solve error with multiple course ids