StringUtils.trimAllWhitespace(String str) is slow.

StringUtils.trimAllWhitespace(String str) is slow.
Using sb.deleteCharAt(index) is not a good idea, it will call 
System.arraycopy(value, index+1, value, index, count-index-1);

Test:
https://gist.github.com/hengyunabc/a4651e90db24cc5ed29a

I have signed and agree to the terms of the SpringSource Individual
Contributor License Agreement.