- str_replace: documentation ( source)
<?php
$string = "As a credit user, I want to be able to upload to excel with the balances pawns into the system, so it can be completed with more information and distributed automatically";
echo str_replace(' ', '', $string);