trims domain param