class SplitCommaReverseService implements SplitGeocoderStringService {

	public String combine(List<String> matchedStrings) {
		StringBuilder sb = new StringBuilder();
		for (int i = matchedStrings.size() - 1; i >= 0; i--) {
			sb.append(matchedStrings.get(i));
			sb.append(", ");
		}
		if (sb.length() == 0) {
			return "";
		} else {
			return sb.substring(0, sb.length() - 2); // remove trailing ", "
		}
	}

}