Left and right division for strings