I'm not aware of any cheaper 'ends with' operations. Seeing as we use this way of matching in other places as well I'm assuming this won't be that much of an issue?