a diagram showing the different types of substiring and non - substiring