Is this whole function just `[part for part in string.split("/") if part]`?