#removelastcharacterfromstringjava