I think this can be achieved if we get the string functions in place (those here → String Functions in DQL). If we could have substring()
then we can do something like:
eq(name, substring("mas"))
I think this would do exactly what you have mentioned in this post. I really love the idea of having those string functions.