remove trailing backslash