Help removing white space from function

Help removing white space from function

I'm trying to remove all whitespaces when pulling information from our website into a cell.  I'm very much self taught but i just can't seem to get this right.  This is my current line which brings the data into the field in Zoho CRM

new_product.put("Reporting",product.executexpath("/dolls/doll_number/text()"));

How do i remove spaces from the Reporting field?

Thank you