remove multiple spaces from string in java code example Example: java remove double spaces StringUtils.normalizeSpace(string);