For example, I have a string:
string1 = \'a b c d e f g h i j\'
How can I make it look like this:
string1 = \'a_b c_d e_f g_h