code: public String prepare(String input) {
  		StringBuffer sb = new StringBuffer();
  		for (int i = 0; i < input.length(); i++){
  		    char c = input.charAt(i);        
  		    if(map.get(c) != null) {
  		    	replacements++;
  		    	sb.append(map.get(c));
  		    } else
  		    	sb.append(c);
  		}
  		return sb.toString();
  	}
docs: Replaces unusual characters in the input string (unusual quotes, apostrophes, whitespaces, etc)
  @param input
  @return