public static String trim(final String str) {
		return str == null ? null : str.trim();
	}
<p>
Removes control characters (char &lt;= 32) from both ends of this String, handling
{@code null} by returning {@code null}.
</p>

<p>
The String is trimmed using {@link String#trim()}. Trim removes start and end
characters &lt;= 32.
</p>

<pre>
StringUtils.trim(null)          = null
StringUtils.trim("")            = ""
StringUtils.trim("     ")       = ""
StringUtils.trim("abc")         = "abc"
StringUtils.trim("    abc    ") = "abc"
</pre>
@param str the String to be trimmed, may be null
@return the trimmed string, {@code null} if null String input
spring-cloud-alibaba-starters/spring-cloud-alibaba-commons/src/main/java/com/alibaba/cloud/commons/lang/StringUtils.java