Clean strings
String data sometimes contains double spaces, tabs and end-of-line (\r
, \n
, \f
) characters. These should be cleaned up and trimmed to null
when preparing JSON for upload. The fix will be something along the lines of str = StringUtils.trimToNull(str.replace(/\s+/g, " "))
.
Edited by Matija Obreza