JS remplace l'espace par plus

// replaces space with '+'
str = str.replace(/ /g, "+");
// or
str = str.split(' ').join('+');
VasteMonde