how to replace multiple spaces with single space in java code example Example: java remove double spaces StringUtils.normalizeSpace(string);