Add replace and deleteCharAt methods to StringBuilder and StringBuffer