#7805

Fixed the bug by returning False when the method _contains of an Interval gets another Interval
space after \#.