Delete an array string in Java

Hello, I need help deleting a string, ie my string is Java.lang.String and I want only the word String to be left. I tried different things, but to no avail, for example the SubString
Could you help me?