improve is_between_quotes logic