The princess walked on a long , long way , trying to find some one who would take her in , and let her work for them ; but though the cottagers , whose houses she passed , gave her food from charity , the ass 's skin was so dirty they would not allow her to enter their houses .