Changing Class attribute from octets to string