remove trailing hyphen