Implement Code::getString() method