The Chofetz Chaim writes in a note to the fifth detail of permissible Lashon Hara in Hilchos Lashon Hara 10:14


  אפשר דהוא הדין אם כוונתו בסיפורו להפיג את דאגתו מלבו - הוי כמכוון לתועלת על להבא, [ולפי זה מה שאמרו ז"ל, דאגה בלב איש ישיחנה לאחרים, קאי גם על ענין כזה]. אך שיזהר שלא יחסרו שאר הפרטים שבסעיף זה"
  
  It is possible that the same [allowance] applies if his intent in retelling is to remove the worry from his heart, it is like intending for toeles for the future [and according to this, that which Chazal say "[when there is] worry in the heart of a man, speak it over to others" also applies to this concept].  However, be careful not to lack any of the other details from this section.


"This section" is the section of the 7 requirements of speaking Lashon Hara(*), and the Chofetz Chaim writes that helping one's self cope, while it constitutes valid toeles, still requires the rest of the preconditions for speaking Lashon Hara.

(*) 1 - Firsthand knowledge

2 - Be sure you are not jumping to conclusions

3 - Speak to the offender, if you think that may work

4- Don't exaggerate, or leave out important details

5 - to'eles

6 - Ensure that there is no other route that could cause the to'eles

7 - Ensure that your words will not cause more damage than is duly deserved 

Loshon hara to a therapist
I am pulling the text from a select box's options. Now I pass this string value to an append() function, but I want to add a hyphen to the string, for calling an image name:

HTML:

&lt;select&gt;
    &lt;option&gt;Demo Cars&lt;/option&gt;
    &lt;option&gt;New Cars&lt;/option&gt;
    &lt;option&gt;Used Cars&lt;/option&gt;
    &lt;option&gt;Other&lt;/option&gt;
&lt;/select&gt;




var p = 'http://myurl.com/images/';
$('select').eq(0).on('change',function(){
    $('#productQuote').empty();
    var j = $(this).children(':selected').val(); 
    $('#productQuote').append('&lt;img src="'+ p + j + '.jpg' '" /&gt;');
}); 


For example:

If I choose the first select option, the string will be: "Demo Cars", and thus, j == "Demo Cars".

But now I want to call its image, and my image names are not allowed to have spaces inside them. 
So, this begs the question, how do I add a hyphen between Demo and Cars?    
