Changed adapter string check to use kivy.compat