strip eol character in name