System.String functions: Strip leading or trailing slash of path or string