@Override
	public String transform(String s) {
		StringBuilder sb = new StringBuilder();
		if (s != null){
			if (this.removeMultipleWhitespaces) {
				s = SqueezeWhitespaceTransformer.MULTIPLE_WHITESPACE.matcher(s).replaceAll(" ");
			}
			if (this.trimIt) {
				s = s.trim();
			}

			Matcher m = regex.matcher(s);
			while (m.find()){
				if (sb.length() > 0) sb.append(" ");
				sb.append(m.group());
			}
		}
		return sb.toString();
	}