I am trying to get a best way to check if a string has consecutive appearances of a particular substring. returning a boolean value e.g. only returning True if the whole str