Str::rtrim() Safe rtrim alternative kirby/src/Toolkit/Str.php#L947 Str::rtrim(string $string, string $trim = ' '): string Parameters Name Type Default $string * string – $trim string ' ' Return type string Parent class Kirby\Toolkit\Str