java remove additional whitespace in middle of string code example Example: java remove double spaces StringUtils.normalizeSpace(string);