b8f89b84 inadvertently replaced startswith/endswith with starts_with/ends_with even though the test uses a custom StringRef. This patch reverts the change.