Codice PHP:
echo str_replace(' ','','categoria prova');