Fix bug in starts-with, ends-with and contains which only matched on first attribute