It actually trims everything other than the domain part.