Change replace to preg_replace. returns the clean table name or alias