adding leading/trailing/consecutive separators hiding logic