Code:
... cs_udf.cs_trim(pd.item_id) = cs_udf.cs_trim(id.k_item_id)
 ...
Do whatever you can to reduce your use of PL/SQL functions, especially if you're going to apply them to values in the table like this.