<?php if ($this->getLength($currentLine) < $max) {
$currentLine .= strings(self::$space)->repeat($max - $this->getLength($currentLine))->toString();
} else if ($this->getLength($currentLine) > $max) {
$currentLine = mb_substr($currentLine, 0, - ($this->getLength($currentLine) - $max));
}
}