If your example were correct, wouldn't you simply do something like:
in reply to Re: Others studying the Monastery: (23)
in thread Others studying the Monastery: (23)
and get the desired result? I'm going to guess that the terms must come from a whitespace-delimited (undisclosed) storage location that doesn't parse phrases properly. But then again, it's only a guess, and I could be entirely wrong...
my @terms =('studying in', 'musing over', 'rifling through',
'threading camels through a needle at' );
printf "Others %s the Monastery", $words[ int rand @words ];