change this line:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($productcart->WeightUnits)."S" ."";
to:
$Shipping_PackageArray[$Shipping_PackageIndex]["WeightUnits"] = "".strtoupper($productcart->WeightSuffix)."S" ."";