diff --git a/component/Handler/Text.php b/component/Handler/Text.php index 78191b5..5658fd4 100644 --- a/component/Handler/Text.php +++ b/component/Handler/Text.php @@ -130,8 +130,9 @@ public function beginsWithVowel(): bool { $string = $this->value; $string = ltrim($string); - $firstLetter = strtolower($string[0]); - $firstLetter = (string) (new self($firstLetter))->removeAccents(); + $string = (string) (new self($string))->removeAccents(); + $firstLetter = substr($string, 0, 1); + $firstLetter = strtolower($firstLetter); return in_array($firstLetter, ['a','e','i','o','u','y']); }