Capitalizes the first letter of a UTF-8 string.
string $text: The string to convert.
string The string with the first letter as uppercase.
public static function ucfirst($text) {
return static::strtoupper(static::substr($text, 0, 1)) . static::substr($text, 1);
}