spy/objects: remove string method hack