select all the text starts with some words with Design Script

How can I select all text nodes which starts with some words using desigN script.

I tried to use this statement but it did not work.I am trying to select all the label text which starts with "ETW".

if (characters .EQ. "ETW*") then
  color = 14
endif