String nome = "victor"; for (int i = 1; i < nome.lenght(); i++ ) { if (nome.charAt(i)==3 ) { String nomeP = nomeP + nome.charAt(i).toUpperCase(); }else{ String nomeP = nomeP + nome.charAt(i); } } > Esse funcionou: <% String showResp = pageContext.getAttribute("chamNoticia").toString(); // String showResp = mt.getAssunto().toString(); if(showResp.length() >= 10){ showResp = showResp.substring(0, 7)+"..."; } out.print(showResp); %> ---- > Comeca na 10a letra e termina no final A var é: lgm.getIndexacao() <%=lgm.getIndexacao().substring(10, lgm.getIndexacao().trim().length())%> ---- > Simplificado: <%= mtdTodos.getAssunto() != null ? mtdTodos.getAssunto().length() > 80 ? mtdTodos.getAssunto().substring(0, 80) + "..." : mtdTodos.getAssunto() : ""%> ----- SUBSTRING: Ex: Retirar os 3 ultimos caracteres: String minhaVar = "Teste"; String minhaVarSub = minhaVar.length() > 3 ? minhaVar.substring(0, minhaVar.length()-3) : minhaVar; out.print(minhaVarSub);