Well, basically the substring at the begining could be the first part of the all string until where time string starts, something like "comdac-1-2,EQPT:,CPINIT,SC" (even "comdac-1-2" would be enough)and the substring a at the end could be "\"pack initialization in progress\"" and you're right...