Move the prefix/substring contraint from the matches call to a property of the string property itself.