trim names before sending