public static String trim(String string) {
        return string == null ? null : string.trim();
    }
Trim string of whitespace.

@param string string to trim
@return trimmed string, or null if null was provided.
common/util/src/main/java/io/apiman/common/util/SimpleStringUtils.java