Dividing strings