delete random head message that appear in java classes