trim url and rel