I am able to remove all single tabs from a string:
// Copying and pasting the tab directly $txt = str_replace(\" \", \"\", $txt);
This only
Try using this regular expression
$string = trim(preg_replace('/\t/g', '', $string));
This will trim out all tabs from the string ...