Trim .java file content