Java tutorial
//package com.java2s; public class Main { public static String TransformString(String chgtext) { String convTxt = chgtext; convTxt = convTxt.replace(""", "'"); convTxt = convTxt.replace(""", "'"); convTxt = convTxt.replace("“", "'"); convTxt = convTxt.replace("”", "'"); convTxt = convTxt.replace(" ", " "); return convTxt; } }