Moved str to the convertPDUToString method