For use cases where we have a CharSequence
instead of a String
, we should introduce StringUtils.trimAllWhitespace(CharSequence)
alongside the existing StringUtils.trimAllWhitespace(String)
utility method.
This is an enhancement needed by #28643.