how to trim double values in java code example Example: java remove double spaces StringUtils.normalizeSpace(string);