Cut a (large) string into files at the markers provided