Url parsing and editing