LinkRelay: remove extra spaces/lines