@rickprent something like `$name = trim($name, '/');` at the start of the method should be more understable, don't you think?