The new data that you have posted is different from the earlier data. Now it contains "xmonths" as last token.

Anyway, your solution is definitely $deltok.

$deltok(<data>,-6-,32) if "xmonths" isn't included in the string
$deltok(<data>,-7-,32) if "xmonths is included in the string

That's it.

Greets