public function toSpaces($tabLength = 4) { $spaces = str_repeat(' ', $tabLength); $str = str_replace("\t", $spaces, $this->str); return static::create($str, $this->encoding); }