Trim the C++ value so that newlines get handled