Actually, I was just going to add a jQuery.trim around the final result and be done with it (like what's done in removeClass).
In the future, you can feel free to just reply to the ticket - it's better to have discussion related to tickets directly in the ticket.