Substituir espaços por um separador

Substitua cada espaço do texto pelo separador fornecido.

add("#", "hello world") // "hello#world"
add("R", "python is fun") // "pythonRisRfun"