PHPOFFICESPREEDSHEET CELL FORMAT

I am using PhpOfficePhpSpreadsheetSpreadsheet to generate a .csv file. I have a number in a cell but I want the number to be formatted as text so no formulas apply to the cell. The problem is that the number eg 58 I should put as '58 and excel should automatically convert that to text. (That cell should have a green triangle at the top left and the ' before the number should not be visible in that cell-Can be seen in the Formula bar.) However the cell shows the number as I put it('58) and this makes the file invalid. My current code is

$spreadsheet = new PhpOfficePhpSpreadsheetSpreadsheet();
$sheet = $spreadsheet->getActiveSheet();

.......

$sheet->setCellValue('A2', "'58");

......

$sheet->getStyle('A2:K' . $sheet->getHighestRow())
      ->getAlignment()
      ->setHorizontal(PhpOfficePhpSpreadsheetStyleAlignment::HORIZONTAL_LEFT);

$sheet->getStyle('A2:F' . $sheet->getHighestRow())
      ->getNumberFormat()
      ->setFormatCode(PhpOfficePhpSpreadsheetStyleNumberFormat::FORMAT_TEXT);
.....

$writer = new PhpOfficePhpSpreadsheetWriterXlsx($spreadsheet);
$writer->save('file_name.xlsx');

What might I be doing wrong?
What my code produces
What I expect