java remove tab between words but keep space code example Example: java remove double spaces StringUtils.normalizeSpace(string);