Add leading and trailing backslashes