String buffer function setCharAt() throws error. Help please : I tried to run this code and remove all uppercase charachters and print the changed string again. But all it does is throwing me a "cannot find symbol - method delete(int,int)" error in the String Buffer function. Im pretty sure the loop variable is visible too. Please help.
 
        String s = "Some Random Sentence Here";
        int l = s.length()
        for(int i = 0;i<=l;i++)
        {
            char ch = s.charAt(i);
            if(Character.isUpperCase(ch) == true)
            {
               s.delete(i,(i+2));
            }
        }
        System.out.println(s);