Open cgendreau opened 7 years ago
Java String [trim()](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#trim()) only removes characters with code <= \u0020.
\u0020
If NumberParser receives a whitespace like \u00A0 (Non-breaking space) the parsing won't work.
\u00A0
Guava's CharMatcher can handle it.
1) We change usage of .tim() and use a CharMatcher 2) We document the limitation of the method and we let the caller handle it.
Java String [trim()](http://docs.oracle.com/javase/7/docs/api/java/lang/String.html#trim()) only removes characters with code <=
\u0020
.If NumberParser receives a whitespace like
\u00A0
(Non-breaking space) the parsing won't work.Guava's CharMatcher can handle it.
1) We change usage of .tim() and use a CharMatcher 2) We document the limitation of the method and we let the caller handle it.