trimming registry url