Supports room names with commas too
Since it is possible to have a room name with comma we only split rooms if all entered rooms are integers