static String sanitizeAttributeName(final String name) {
        return StringUtils.replace(name.trim(), " ", "_");
    }
Sanitize attribute name string.

@param name the name
@return the string
api/cas-server-core-api-validation/src/main/java/org/apereo/cas/validation/CasProtocolAttributesRenderer.java