You can anchor the search by calling it as [::string match ...]
There's probably also an argument to be made for calling [template::data::validate::string ...] as [::template::data::validate::string ...] instead, although noone seems to do that in the current OACS codebase...