private function getSurroundingText(array $charArray, int $position) : string
    {
        if (count($charArray) <= 3) {
            return implode('', $charArray);
        }

        if ($position <= 3) {
            return implode('', array_slice($charArray, 0, 4));
        }

        return implode('', array_slice($charArray, $position - 3, 4));
    }