Adds toString() method to adapter