opendap/src/main/java/opendap/dap/DDS.java
public static String normalize(String field)
    {
        boolean Debug = false;
        StringBuffer sb = new StringBuffer(field);

        for (int offset = 0; offset < sb.length(); offset++) {

            char c = sb.charAt(offset);

            // for every quote and slach in the string, add a slash in front of it.
            if (c == slash || c == quote) {
                sb.insert(offset, slash);
                offset++;
            }

        }
        //Coverity[DEADCODE]
        if (Debug) {
		DAPNode.log.debug("String: `" + field + "` normalized to: `" + sb + "`");
	    }

        return (sb.toString());

    }
public static String normalize(String field)
    {
        boolean Debug = false;
        StringBuffer sb = new StringBuffer(field);

        for (int offset = 0; offset < sb.length(); offset++) {

            char c = sb.charAt(offset);

            // for every quote and slach in the string, add a slash in front of it.
            if (c == slash || c == quote) {
                sb.insert(offset, slash);
                offset++;
            }

        }
        //Coverity[DEADCODE]
        if (Debug) {
		DAPNode.log.debug("String: `" + field + "` normalized to: `" + sb + "`");
	    }

        return (sb.toString());

    }
The <code>normalize</code> method is used to normalize variable and
attribute name strings prior
to their comparison with the normalized tokens extracted from the
variable and name fields in an Alias declaration.
<p/>
The rule for this normalization is as follows:
<p/>
<ul>
<li> The &quot; (double quote) and the \ (backslash, aka escape)
characters MUST be escaped (using the \ character) in the <b>variable</b>
and <b>attribute</b> fields.</li>
</ul>

@param field The string to be normalized.
@return The "normalized" string.