class Solution { public String replaceSpaces(StringBuffer str) { String replaceString = str.toString().replace(” “,”%20”); return replaceString; } }