how to put one space when it has more java code example Example: java remove double spaces StringUtils.normalizeSpace(string);