remove tailing `\`