st = st.replaceAll("^(\\S*\\s){4}", "");
^ indicates that we remove only the first character of the string.
\s- any empty space. It will also delete, for example, tables.
\s - any character without a space.
* means any number of occurrences of a character.
So, \S*- any number of characters of a non-white space before a space.
{4}, , , 4 .
:
st = st.replaceFirst("(\\S*\\s){4}", "");
, ^.
4 :
st = st.replaceAll("^(\\S*\\s){1,4}", "");
, . , trim:
st = st.trim().replaceAll("^(\\S*\\s){1,4}", "");